0546

From GTAMods Wiki
Jump to navigation Jump to search

Vice City IS_PLAYER_TOUCHING_VEHICLE


Description
Checks if the player is touching the vehicle
Syntax
0546:   player [player handle] touching_car [car handle]
Parameter
[player handle]
The handle of the player
[car handle]
The handle of the vehicle

This conditional opcode returns true when the player character touches or collides with the vehicle. If the player is driving a vehicle (excluding the target vehicle), the opcode also returns true when the player's vehicle touches or collides with the target vehicle.

Keywords

check, player, touch, touching, car, vehicle, collide

See also

  • San Andreas 0547, checks if the character is touching the vehicle