ACS_Terminate

From ZDoom Wiki

Jump to: navigation, 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 permenantly prevents the bomb from going off and thus saves the player.

Personal tools