Difference between revisions of "047E"
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...") |
|||
Line 4: | Line 4: | ||
: Checks if the player is on a motorbike | : Checks if the player is on a motorbike | ||
'''Syntax''' | '''Syntax''' | ||
− | : 047E: player [''player handle''] | + | : 047E: player [''player handle''] on_any_bike |
'''Parameter''' | '''Parameter''' | ||
: [''player handle''] | : [''player handle''] | ||
:: The [[0053|handle of the player]] | :: 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 — 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 — 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 == |
Revision as of 10:30, 29 November 2015
Description
- Checks if the player is on a motorbike
Syntax
- 047E: player [player handle] on_any_bike
Parameter
- [player handle]
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
- 047A, checks if a character is on a motorbike