View Single Post
  #1  
Old 06-04-2013, 07:06 PM
Sokol1's Avatar
Sokol1 Sokol1 is offline
Approved Member
 
Join Date: Oct 2007
Posts: 727
Default Remove aircraft after landing

Anyone know how adapt this scrip to remove a specific aircraft (Bf-108B-2) after his landing?

Quote:
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
Reply With Quote