Difference between revisions of "047E"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{Icon|3}} {{Icon|VC}} '''IS_PLAYER_ON_ANY_BIKE''' <hr /> '''Description''' : Checks if the player is on a motorbike '''Syntax''' : 047E:   player [''player handle''] dri...")
 
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Icon|3}} {{Icon|VC}} '''IS_PLAYER_ON_ANY_BIKE'''
+
{{OpCode
<hr />
+
| games      = {{Icon|3}} {{Icon|VC}}
'''Description'''
+
| command    = IS_PLAYER_ON_ANY_BIKE
: Checks if the player is on a motorbike
+
| description = Checks if the player is on a motorbike
'''Syntax'''
+
| syntax1    = 047E: &nbsp; player [''player handle''] on_any_bike
: 047E: &nbsp; player [''player handle''] driving_a_motorbike
+
| p1t        = [''player handle'']
'''Parameter'''
+
| p1d        = The [[0053|handle of the player]]
: [''player handle'']
+
}}
:: The [[0053|handle of the player]]
 
  
This opcode returns true if the player is on a motorbike. This opcode works in GTA III but it doesn't seem to be of any use &mdash; the opcode only returns true if the player in a vehicle of [[CARS (IDE Section)#GTA III|type 5 (bike)]], which is not used by any vehicle in the game.
+
This conditional opcode returns true if the player is on a motorbike, either as a driver or a passenger. By default the game will recognize the following list of vehicles as motorbikes (for which the IS_BIKE flag is set in the [[Handling.cfg#Flag_Data_2|handling.cfg]] file):
 +
* Angel
 +
* Faggio
 +
* Freeway
 +
* PCJ 600
 +
* Pizza Boy
 +
* Sanchez
 +
This opcode works in GTA III but it doesn't seem to be of any use &mdash; the opcode only returns true if the player in a vehicle of [[CARS (IDE Section)#GTA III|type 5 (bike)]], which is not used by any vehicle in the game.
  
 
== Keywords ==
 
== Keywords ==
check, player, driving, bike, motorbike, motorcycle
+
check, player, driving, any, bike, motorbike, motorcycle
  
 
== See also ==
 
== See also ==
* [[047A]], checks if a character is on a motorbike
+
* {{Icon|t}} [[047A]], checks if a character is on a motorbike
 
 
[[Category:OpCodes]]
 

Latest revision as of 07:25, 9 November 2016

GTA III Vice City IS_PLAYER_ON_ANY_BIKE


Description
Checks if the player is on a motorbike
Syntax
047E:   player [player handle] on_any_bike
Parameter
[player handle]
The handle of the player

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

  • Angel
  • Faggio
  • Freeway
  • PCJ 600
  • Pizza Boy
  • Sanchez

This opcode works in GTA III but it doesn't seem to be of any use — the opcode only returns true if the player in a vehicle of type 5 (bike), which is not used by any vehicle in the game.

Keywords

check, player, driving, any, bike, motorbike, motorcycle

See also

  • GTA III Vice City San Andreas 047A, checks if a character is on a motorbike