SetCeilingTrigger
void SetCeilingTrigger (int tag, int height, int special [, int arg1 [, int arg2 [, int arg3 [, int arg4 [, int arg5]]]]])
Usage
When the ceiling specified by tag moves the specified height, special(arg1, arg2, arg3, arg4, arg5) will be activated.
Examples
SetCeilingTrigger (12, 128, acs_execute, 18, 0);
Will execute script 18 (on the current map) when the sector ceiling with tag 12 moves 128 units up (from 128 to 256 or -128 to 0 etc)
SetCeilingTrigger (25, -64, teleport, 15);
Will teleport the script activator to spot 15 when the sector ceiling 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.