ACS_Terminate
82:ACS_Terminate (script, map)
- script: Script to terminate
- map: Map which contains the script
Usage
Terminates execution of the specified script. You may not terminate scripts that were executed using the ACS_ExecuteAlways special or ENTER scripts.
Examples
The following example builds on the bomb counter example at ACS_Suspend. It terminates the countdown and tells the player the bomb has been defused.
script 51 (void) { Print(s:"The bomb has been defused!"); ACS_Terminate(17, 0); }
This is the logical command to use, as it permanently prevents the bomb from going off and thus saves the player.
External links
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.