I tried actually implimenting the script, and it ended up being a total failure. I cannot figure out why even a basic flight spawn script fails to spawn anything whatsoever. Logs are telling me nothing, so I have no clue why its not working.
At this point, I am very close to just giving up on the whole thing.
local escort1 = NewNavyFlight(groupName, "escort1_"..__formation_number, currentContact[3][portalStartIndex]:GetEntryPoint(10), 1, 6, currentContact[3][portalStartIndex]:GetOrientation());
local mainship;
mainship = getglobal("flight_randomformation_"..__formation_n umber);
local _pilot = mainship:GetPilotByNumber(1);
local _ship = _pilot:GetShip();
escort1:Escort(_ship);
This was directly inserted into the trigger generator function.
This is the most simplified script that generates no errors. This is -supposed- to spawn a Old Empire flight with every random contact, and escort the flight it spawns with. However, when I actually go in-game, nothing happens.
Last edited by Nanaki; 04-19-2010 at 10:26 PM.
|