Difference between revisions of "04A9"

From GTAMods Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 04A9=1,  %1d%
+
| games      = {{Icon|SA}}
| description = Checks if an actor is in a helicopter
+
| command    = IS_CHAR_IN_ANY_HELI
| p1          = Actor handle
+
| description = Checks if the character is in a helicopter
| game        = [[San Andreas]]
+
| syntax1    = 04A9:   actor [''char handle''] driving_heli
 +
| p1t        = [''char handle'']
 +
| p1d        = The handle of the character
 
| native      = [[IS_CHAR_IN_ANY_HELI]]
 
| native      = [[IS_CHAR_IN_ANY_HELI]]
 
}}
 
}}
This opcode checks if an actor is in a helicopter. It supersedes [[Vice City]]'s opcode [[04AA]]. The game will recognize the following list of vehicles as helicopters.
+
 
 +
This conditional opcode returns true if the character is in a helicopter. 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#Model Flag Data|handling.cfg]] file):
 
*Cargobob
 
*Cargobob
 
*Hunter
 
*Hunter
Line 19: Line 22:
 
*Sparrow
 
*Sparrow
  
==Keywords==
+
== Keywords ==
 
check, actor, piloting, driving, operating, helicopter, rotorcraft
 
check, actor, piloting, driving, operating, helicopter, rotorcraft
 +
 +
== See also ==
 +
* {{Icon|VC}} [[04AA]], checks if the player is in a helicopter

Latest revision as of 07:48, 4 December 2016

San Andreas IS_CHAR_IN_ANY_HELI


Description
Checks if the character is in a helicopter
Syntax
04A9:   actor [char handle] driving_heli
Parameter
[char handle]
The handle of the character
Native analog
IS_CHAR_IN_ANY_HELI

This conditional opcode returns true if the character is in a helicopter. 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):

  • Cargobob
  • Hunter
  • Leviathan
  • Maverick
  • News Chopper
  • Police Maverick
  • Raindancer
  • RC Goblin
  • RC Raider
  • Sea Sparrow
  • Sparrow

Keywords

check, actor, piloting, driving, operating, helicopter, rotorcraft

See also

  • Vice City 04AA, checks if the player is in a helicopter