0178
Revision as of 06:07, 8 January 2016 by Spaceeinstein (talk | contribs) (Created page with "{{OpCode | games = {{Icon|3}} | command = IS_PLAYER_TOUCHING_OBJECT | description = Checks if the player is touching the object | syntax1 = 0178: player [...")
- 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