View Single Post
  #44  
Old 04-27-2011, 03:32 PM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Destroys crashlanded aircraft in 5 seconds ))
Code:
public override void OnAircraftCrashLanded(int missionNumber, string shortName, AiAircraft aircraft)
    {
        base.OnAircraftCrashLanded(missionNumber, shortName, aircraft);
        Timeout(5, () =>
        {
            aircraft.Destroy();
        });
    }
Have to figure out how to use it though.

Quote:
Originally Posted by mcler002 View Post
Dude, what do those numbers do?
Just notes for myself on timing. Not processed by program.

if (Time.tickCounter() % 72000 == 72000) is wrong probably.

Last edited by Ataros; 04-27-2011 at 03:34 PM.
Reply With Quote