Official Fulqrum Publishing forum

Official Fulqrum Publishing forum (http://forum.fulqrumpublishing.com/index.php)
-   CoD Multiplayer (http://forum.fulqrumpublishing.com/forumdisplay.php?f=192)
-   -   help for log files (http://forum.fulqrumpublishing.com/showthread.php?t=184829)

_1SMV_Poppy_64 04-23-2014 10:59 AM

help for log files
 
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.


All times are GMT. The time now is 02:35 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.