Hi all,
we are trying to write a script to have an eventlog with all the events (kia, static destroyed, chief destroyed and so on), and for some event we are in the right way.
Now we have a problem when testing the script to intercept "TAKE OFF" or "LANDING" event for the player.
Here the part of the script:
Quote:
//DECOLLO, con coordinate.
public override void OnAircraftTookOff(int missionNumber, string shortName, AiAircraft aircraft)
{
base.OnAircraftTookOff(missionNumber, shortName, aircraft);
sl.scriviLog("[" + System.DateTime.Now.Hour + ":" + System.DateTime.Now.Minute + ":" + System.DateTime.Now.Second + "] " + "AIRCRAFT " + shortName + " TAKE OFF. " + " pos ");
GamePlay.gpHUDLogCenter("Debug: OnAircraftTookOF =>" shortName + " TAKE OFF.");
}
|
Problem is: if the aircraft used from a player is a plane selected from the AI planes (placed in mission builder) the script intercept correctly the event, BUT if the aircraft is created from a player in a BirthPlace, the script doesn't intercepted the event.
Some problem for some other events.
Please, anyone has a suggestion?
Thank you.