BlockTrigger

From PGE Wiki
Jump to navigation Jump to search

Prototype

BlockTrigger,0,BLOCK ID,URDL,EVENT,Active time,OPTION

Description

When player touches any block of type BLOCK ID, activates EVENT. URDL determines what type of interaction the player must have with the block.

Notes

URDL = 1 = Player on top of block URDL = 2 = Player touching right side URDL = 3 = Player touching bottom URDL = 4 = Player touching left side 0 and 5 have an unknown interaction

This command supports the "once" OPTION, meaning if you enter "once" as the final parameter it will only activate once and then delete itself.

Examples

// Activate event #1000 when player lands on basic wood block (block ID 1) only once
BlockTrigger,0,1,1,1000,0,once