ACS_Terminate
Jump to navigation
Jump to search
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.