View Single Post
  #17  
Old 04-20-2011, 06:10 PM
Jwam Jwam is offline
Approved Member
 
Join Date: Apr 2011
Posts: 51
Default

Quote:
Originally Posted by ZaltysZ View Post
Jwam, what script were you running?
This one :
Code:
using System;
using maddox.game;
using maddox.game.world;
using System.Collections.Generic;

public class Mission : AMission
{


    public override void OnPlaceLeave(Player player, AiActor actor, int placeIndex)
    {
        base.OnPlaceLeave(player, actor, placeIndex);
        Timeout(1, () =>
        {
            AiAircraft CurAircraft = player.Place() as AiAircraft;
            AiAircraft PrevAircraft = actor as AiAircraft;
            if (CurAircraft != PrevAircraft)   
                { (actor as AiAircraft).Destroy(); }
        });
    }

}
Reply With Quote