#1
|
|||
|
|||
help actor
hello, maybe I make a noob question, but I'm going crazy, how do I know if an aircraft is commanded by the AI or a human.
with an actor is used, can not find the back sorry for my English and my lack of coding thanks |
#2
|
|||
|
|||
Example:
Code:
if (actor is AiAircraft) { for (int i = 0; i < (actor as AiAircraft).Places(); i++) { if ((actor as AiAircraft).Player(i) != null) { // Actor has Player } } } |
#3
|
|||
|
|||
thanks
|
|
|