03-25-2010, 08:12 PM
|
Approved Member
|
|
Join Date: Oct 2008
Posts: 508
|
|
Quote:
Originally Posted by Nanaki
Unfortunately, my third experiment was not successful. The game uses its own internal hardcoded XML Schema files which cannot be edited, so adding new special abilities is out of the question.
Yes, it is doable, I have done it. I have a fully managable Lion with 10 Turrets, 6 systems, and 4 GKGuns (this is for my Liger version without the GKTurrets)
|
Please, let me know how !!!
Quote:
What exactly is going wrong?
|
This is the problem - nothing. no CTD, no errors. Simply nothing. I've tried something like this:
Quote:
function New_Gray_Attack()
NewGreyFlight("Grey_Group", "greyA1", mothership:GetPosition()+Vector3(60, 5, 0), 1, 17, Vector3(-1, 0, 0));
countf = flight_greyA1:GetPilotCount();
for i=0,countf,1 do
pilot_tmp = flight_greyA1:GetPilotByNumber(i);
ship_tmp = pilot_tmp:GetShip();
ship_tmp: PlayFX("Cloak Out.shfx");
end;
NewGreyFlight("Grey_Group", "greyA2", mothership:GetPosition()+Vector3(0, 5, -70), 1, 15, Vector3(0, 0, 1));
countf = flight_greyA2:GetPilotCount();
for i=0,countf,1 do
pilot_tmp = flight_greyA2:GetPilotByNumber(i);
ship_tmp = pilot_tmp:GetShip();
ship_tmp: PlayFX("Cloak Out.shfx");
end;
NewGreyFlight("Grey_Group", "greyA3", mothership:GetPosition()+Vector3(-40, 5, 65), 1, 15, Vector3(0.5, 0, -0.5));
countf = flight_greyA3:GetPilotCount();
for i=0,countf,1 do
pilot_tmp = flight_greyA3:GetPilotByNumber(i);
ship_tmp = pilot_tmp:GetShip();
ship_tmp: PlayFX("Cloak Out.shfx");
end;
end;
|
I've added group declaration in region "activate.script" file too. I want this function to be executed by quest dialog. Could you post your working function and other necessary changes?
|