Difference between revisions of "04AA"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{Icon|VC}} '''IS_PLAYER_IN_ANY_HELI''' <hr /> '''Description''' : Checks if the player is in a helicopter '''Syntax''' : 04AA:   player [''player handle''] in_any_heli '...")
 
m
 
Line 1: Line 1:
{{Icon|VC}} '''IS_PLAYER_IN_ANY_HELI'''
+
{{OpCode
<hr />
+
| games      = {{Icon|VC}}
'''Description'''
+
| command    = IS_PLAYER_IN_ANY_HELI
: Checks if the player is in a helicopter
+
| description = Checks if the player is in a helicopter
'''Syntax'''
+
| syntax1    = 04AA: &nbsp; player [''player handle''] in_any_heli
: 04AA: &nbsp; player [''player handle''] in_any_heli
+
| 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 helicopter, either as a driver or a passenger. It is [[List of unsupported opcodes|unsupported]] in [[San Andreas]] and is superseded by opcode [[04A9]]. By default the game will recognize the following list of vehicles as helicopters (for which the IS_HELI flag is set in the [[Handling.cfg#Flag_Data_2|handling.cfg]] file):
+
This conditional opcode returns true if the player is in a helicopter, either as a driver or a passenger. By default the game will recognize the following list of vehicles as helicopters (for which the IS_HELI flag is set in the [[Handling.cfg#Flag_Data_2|handling.cfg]] file):
 
* Hunter
 
* Hunter
 
* Maverick
 
* Maverick
Line 22: Line 21:
 
player, driving, any, helicopter, heli
 
player, driving, any, helicopter, heli
  
[[Category:OpCodes]]
+
== See also ==
 +
* {{Icon|SA}} [[04A9]], checks if the character is in a helicopter

Latest revision as of 07:55, 4 December 2016

Vice City IS_PLAYER_IN_ANY_HELI


Description
Checks if the player is in a helicopter
Syntax
04AA:   player [player handle] in_any_heli
Parameter
[player handle]
The handle of the player

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

  • Hunter
  • Maverick
  • Police Maverick
  • RC Goblin
  • RC Raider
  • Sea Sparrow
  • Sparrow
  • VCN Maverick

Keywords

player, driving, any, helicopter, heli

See also

  • San Andreas 04A9, checks if the character is in a helicopter