0178
Jump to navigation
Jump to search
- 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