Difference between revisions of "04AB"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<code>04AB=1,%1d%</code><br>
+
{{OpCode
'''Description''': Checks if an actor is operating a plane<br>
+
| games      = {{Icon|SA}}
'''Parameter 1''': Actor ID<br>
+
| command    = IS_CHAR_IN_ANY_PLANE
'''Supports''': Vice City, San Andreas<br>
+
| description = Checks if the character is in a plane
 +
| syntax1    = 04AB: &nbsp; actor [''char handle''] driving_plane
 +
| p1t        = [''char handle'']
 +
| p1d        = The handle of the character
 +
| native      = [[IS_CHAR_IN_ANY_PLANE]]
 +
}}
  
This conditional opcode checks if an actor is operating a 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#Model Flag Data|handling.cfg]] file):
 +
*Andromada
 +
*AT-400
 +
*Beagle
 +
*Cropduster
 +
*Dodo
 +
*Hydra
 +
*Nevada
 +
*RC Baron
 +
*Shamal
 +
*Skimmer
 +
*Stuntplane
  
==List of Planes==
+
== Keywords ==
The game will recognize the following list of vehicles as planes.
+
check, actor, character, driving, flying, piloting, operating, any, plane
{|
 
! Vice City
 
! San Andreas
 
|-
 
| RC Baron
 
| Andromada
 
|-
 
| Skimmer
 
| AT-400
 
|-
 
|
 
| Beagle
 
|-
 
|
 
| Cropduster
 
|-
 
|
 
| Dodo
 
|-
 
|
 
| Hydra
 
|-
 
|
 
| Nevada
 
|-
 
|
 
| RC Baron
 
|-
 
|
 
| Shamal
 
|-
 
|
 
| Skimmer
 
|-
 
|
 
| Stuntplane
 
|}
 
  
==Keywords==
+
== See also ==
driving, flying, piloting, operating, plane
+
* {{Icon|VC}} [[04AC]], checks if the player is in a plane
 
 
[[Category:OpCodes]]
 

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