Difference between revisions of "04A8"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
Line 1: Line 1:
{{Icon|VC}} '''IS_PLAYER_IN_ANY_BOAT'''
+
{{OpCode
<hr />
+
| games      = {{Icon|VC}}
'''Description'''
+
| command    = IS_PLAYER_IN_ANY_BOAT
: Checks if the player is in a boat
+
| description = Checks if the player is in a boat
'''Syntax'''
+
| syntax1    = 04A8: &nbsp; player [''player handle''] in_any_boat
: 04A8: &nbsp; player [''player handle''] driving_boat
+
| 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 boat, either as a driver or a passenger. It is [[List of unsupported opcodes|unsupported]] in [[San Andreas]] and is superseded by opcode [[04A7]]. By default the game will recognize the following list of vehicles as boats (for which the IS_BOAT flag is set in the [[Handling.cfg#Flag_Data_2|handling.cfg]] file):
+
This conditional opcode returns true if the player is in a boat, either as a driver or a passenger. By default the game will recognize the following list of vehicles as boats (for which the IS_BOAT flag is set in the [[Handling.cfg#Flag Data 2|handling.cfg]] file):
 
*Coastguard
 
*Coastguard
 
*Cuban Jetmax
 
*Cuban Jetmax
Line 23: Line 22:
 
player, driving, any, boat
 
player, driving, any, boat
  
[[Category:OpCodes]]
+
== See also ==
 +
* {{Icon|SA}} [[04A7]], checks if the character is in a boat

Latest revision as of 06:58, 23 December 2016

Vice City IS_PLAYER_IN_ANY_BOAT


Description
Checks if the player is in a boat
Syntax
04A8:   player [player handle] in_any_boat
Parameter
[player handle]
The handle of the player

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

  • Coastguard
  • Cuban Jetmax
  • Dinghy
  • Marquis
  • Predator
  • Speeder
  • Squalo
  • Reefer
  • Tropic

Keywords

player, driving, any, boat

See also

  • San Andreas 04A7, checks if the character is in a boat