View Single Post
  #4  
Old 08-01-2011, 05:09 PM
stillborn stillborn is offline
Approved Member
 
Join Date: Sep 2010
Posts: 21
Default

Thanks, this would be useful.
Quote:
Originally Posted by adonys View Post
BTW, do you know any method to reference an AiActor from an AiAircraft
AiAircraft is a class derived from AiActor, type casting works both ways, ive tested it like this
Code:
    public override void OnPlaceEnter(Player player, AiActor actor, int placeIndex)
    {
        AiAircraft ac = actor as AiAircraft;
        AiActor ak = ac as AiActor;
        GamePlay.gpHUDLogCenter(ak.Name());
    }
Reply With Quote