View Single Post
  #7  
Old 06-07-2011, 08:32 AM
TheEnlightenedFlorist TheEnlightenedFlorist is offline
Approved Member
 
Join Date: May 2011
Location: SLC, Utah, USA
Posts: 143
Default

Quote:
Originally Posted by Ataros View Post
Does aircraft.Player() return a player name located inside an AiAircraft?
Do you know when RemotePlayer has to be used instead of Player?
It returns the player at a specific "place" in an aircraft. It looks like "places" is what the developers call different seats in aircraft. If there is no player in that seat, it returns null.

gpRemotePlayers() would be used to get all of the players connected to the server. From there, you could get the aircraft that they are in. aircraft.Player() would be used when you already have an aircraft and want to get the player (if any) that occupies that aircraft. It's a subtle but very important difference.
Reply With Quote