07F1

From GTAMods Wiki
Jump to navigation Jump to search

San Andreas IS_PLAYER_PERFORMING_WHEELIE


Description

Checks if the player is performing a wheelie

Syntax

07F1:   player [player handle] performing_wheelie

Parameter

[player handle]
The handle of the player

Native analog

IS_PLAYER_PERFORMING_WHEELIE

This conditional opcode returns true when the player is performing a wheelie. A wheelie is being performed if only the rear wheel of a motorcycle or bicycle is touching the ground. The body of the bike and the front wheel cannot touch any solid surface.

For Vice City

This opcode does not exist in Vice City but it is possible to detect if the player is performing a wheelie. The following example, using Sanny Builder with CLEO for Vice City in an external script (not the main one) and tested on US v1.0, should work similarly to this opcode.

:opcode_07F1
05E0: [email protected] = read_memory 0x94AE24 size 4 virtual_protect 0  // get wheelie duration
[email protected] > 0  // change duration limit to suit your needs
05F6: ret 0

Use this line as a substitute for opcode 07F1. This can be placed anywhere within the external script as a conditional statement.

if
  05F5: call_scm_func @opcode_07F1 inputs 0
then
  ...
end

Keywords

check, player, performing, wheelie