Thanks, this would be useful.
Quote:
Originally Posted by adonys
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());
}