0178

From GTAMods Wiki
Jump to navigation Jump to search

GTA III IS_PLAYER_TOUCHING_OBJECT


Description
Checks if the player is touching the object
Syntax
0178:   player [player handle] touching_object [object handle]
Parameter
[player handle]
The handle of the player
[object handle]
The handle of the object

This conditional opcode returns true when the player character touches or collides with the object. If the player is driving a vehicle, the opcode also returns true when the player's vehicle touches or collides with the object. Legacy documentation described this opcode as checking if the player is picking up the object. The original script called this opcode during "S.A.M."

Keywords

check, player, touch, touching, object, collide

See also

  • GTA III San Andreas 0179, checks if the character is touching the object
  • GTA III 023A, checks if the player is touching the object on foot
  • GTA III San Andreas 023B, checks if the character is touching the object on foot