View Single Post
  #1  
Old 10-29-2012, 01:48 PM
SG1_Lud's Avatar
SG1_Lud SG1_Lud is offline
Approved Member
 
Join Date: Jul 2010
Location: Spain
Posts: 376
Default C# Scripts: Referencing an AI aircraft.

Hi all:

Imagine we have the player aircraft inflight (A), and another one AI (B).

I can get the reference to the player aircraft (A) using:

Code:
//Get player aircraft
            cur_Plane = GamePlay.gpPlayer().Place() as AiAircraft;
Similarly, how can I get a reference to the other aircraft in flight (B) ?


Thanks.
Reply With Quote