PDA

View Full Version : Remove aircraft after landing


Sokol1
06-04-2013, 07:06 PM
Anyone know how adapt this scrip to remove a specific aircraft (Bf-108B-2) after his landing?


public override void OnAircraftLanded(int missionNumber, string shortName, AiAircraft aircraft)
{
base.OnAircraftLanded

double DespawnAfter = 5 * 60; // seconds after landing
Timeout(DespawnAfter, (60) => // despawn after specified seconds
{
try { aircraft.Destroy(); }
catch { }
});
}



Sokol1