SetFloorTrigger
void SetFloorTrigger (int tag, int height, int special [, int arg1 [, int arg2 [, int arg3 [, int arg4 [, int arg5]]]]])
Usage
When the floor specified by tag moves the specified height, special(arg1, arg2, arg3, arg4, arg5) is executed.
Examples
SetFloorTrigger (12, 128, acs_execute, 18, 0);
Will execute script 18 (on the current map) when the sector floor with tag 12 moves 128 units up (from 128 to 256 or -128 to 0 etc)
SetFloorTrigger (25, -64, teleport, 15);
Will teleport the script activator to spot 15 when the sector floor with tag 25 moves down 64 units (from 0 to -64, 128 to 64 etc)
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.