0546

From GTAMods Wiki
Revision as of 17:59, 7 January 2016 by Spaceeinstein (talk | contribs) (Created page with "{{OpCode | games = {{Icon|VC}} | command = IS_PLAYER_TOUCHING_VEHICLE | description = Checks if the player is touching the vehicle | syntax1 = 0546:   playe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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