Difference between revisions of "04A9"

From GTAMods Wiki
Jump to navigation Jump to search
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<code>04A9=1,  %1d%</code><br>
+
{{OpCode
'''Description''': Checks if an actor is operating a helicopter<br>
+
| games      = {{Icon|SA}}
'''Parameter 1''': Actor handle<br>
+
| command    = IS_CHAR_IN_ANY_HELI
'''Supports''': Vice City (not tested), San Andreas<br>
+
| description = Checks if the character is in a helicopter
 +
| syntax1    = 04A9: &nbsp; actor [''char handle''] driving_heli
 +
| p1t        = [''char handle'']
 +
| p1d        = The handle of the character
 +
| native      = [[IS_CHAR_IN_ANY_HELI]]
 +
}}
  
This opcode checks if an actor is operating a helicopter.
+
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
 +
*Hunter
 +
*Leviathan
 +
*Maverick
 +
*News Chopper
 +
*Police Maverick
 +
*Raindancer
 +
*RC Goblin
 +
*RC Raider
 +
*Sea Sparrow
 +
*Sparrow
  
==List of Helicopters==
+
== Keywords ==
The game will recognize the following list of vehicles as helicopters.
+
check, actor, piloting, driving, operating, helicopter, rotorcraft
{|
 
! Vice City
 
! San Andreas
 
|-
 
| Maverick
 
| Cargobob
 
|-
 
| Police Maverick
 
| Hunter
 
|-
 
| RC Goblin
 
| Leviathan
 
|-
 
| RC Raider
 
| Maverick
 
|-
 
| Sea Sparrow
 
| News Chopper
 
|-
 
| Sparrow
 
| Police Maverick
 
|-
 
| VCN Maverick
 
| Raindancer
 
|-
 
|
 
| RC Goblin
 
|-
 
|
 
| RC Raider
 
|-
 
|
 
| Sea Sparrow
 
|-
 
|
 
| Sparrow
 
|}
 
  
==Keywords==
+
== See also ==
actor, piloting, driving, operating, helicopter, rotorcraft
+
* {{Icon|VC}} [[04AA]], checks if the player is in a helicopter
 
 
[[Category:OpCodes]]
 

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