Difference between revisions of "04AB"

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

Latest revision as of 16:58, 16 June 2016

San Andreas IS_CHAR_IN_ANY_PLANE


Description
Checks if the character is in a plane
Syntax
04AB:   actor [char handle] driving_plane
Parameter
[char handle]
The handle of the character
Native analog
IS_CHAR_IN_ANY_PLANE

This conditional opcode returns true if the character 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):

  • Andromada
  • AT-400
  • Beagle
  • Cropduster
  • Dodo
  • Hydra
  • Nevada
  • RC Baron
  • Shamal
  • Skimmer
  • Stuntplane

Keywords

check, actor, character, driving, flying, piloting, operating, any, plane

See also

  • Vice City 04AC, checks if the player is in a plane