View Single Post
  #2  
Old 10-29-2012, 03:36 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Depens on situation:

Normaly with gpActorByName in this example the Aircraft with name "0:BoB_RAF_F_111Sqn_Early.000"
Code:
AiAircraft aircraft = GamePlay.gpActorByName("0:BoB_RAF_F_111Sqn_Early.000") as AiAircraft;

if (aircraft != null)
{
    // code
}

Last edited by FG28_Kodiak; 10-29-2012 at 03:38 PM.
Reply With Quote