Difference between revisions of "04AC"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{Icon|VC}} '''IS_PLAYER_IN_ANY_PLANE''' <hr /> '''Description''' : Checks if the player is in a plane '''Syntax''' : 04AC:   player [''player handle''] in_any_plane '''P...")
 
m
 
Line 1: Line 1:
{{Icon|VC}} '''IS_PLAYER_IN_ANY_PLANE'''
+
{{OpCode
<hr />
+
| games      = {{Icon|VC}}
'''Description'''
+
| command    = IS_PLAYER_IN_ANY_PLANE
: Checks if the player is in a plane
+
| description = Checks if the player is in a plane
'''Syntax'''
+
| syntax1    = 04AC: &nbsp; player [''player handle''] in_any_plane
: 04AC: &nbsp; player [''player handle''] in_any_plane
+
| p1t        = [''player handle'']
'''Parameter'''
+
| p1d        = The [[0053|handle of the player]]
: [''player handle'']
+
}}
:: The [[0053|handle of the player]]
 
  
This conditional opcode returns true if the player is in a plane, either as a driver or a passenger. It is [[List of unsupported opcodes|unsupported]] in [[San Andreas]] and is superseded by opcode [[04AB]]. By default the game will recognize the following list of vehicles as planes (for which the IS_PLANE flag is set in the [[Handling.cfg#Flag_Data_2|handling.cfg]] file):
+
This conditional opcode returns true if the player is in a plane, either as a driver or a passenger. By default the game will recognize the following list of vehicles as planes (for which the IS_PLANE flag is set in the [[Handling.cfg#Flag_Data_2|handling.cfg]] file):
 
* Skimmer
 
* Skimmer
 
* RC Baron
 
* RC Baron
Line 15: Line 14:
  
 
== Keywords ==
 
== Keywords ==
player, driving, any, plane
+
check, player, driving, any, plane
  
[[Category:OpCodes]]
+
== See also ==
 +
* {{Icon|SA}} [[04AB]], checks if the character is in a plane

Latest revision as of 16:46, 16 June 2016

Vice City IS_PLAYER_IN_ANY_PLANE


Description
Checks if the player is in a plane
Syntax
04AC:   player [player handle] in_any_plane
Parameter
[player handle]
The handle of the player

This conditional opcode returns true if the player is in a plane, either as a driver or a passenger. By default the game will recognize the following list of vehicles as planes (for which the IS_PLANE flag is set in the handling.cfg file):

  • Skimmer
  • RC Baron

This opcode was never called in the original script of Vice City.

Keywords

check, player, driving, any, plane

See also

  • San Andreas 04AB, checks if the character is in a plane