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 permanently prevents the bomb from going off and thus saves the player.

Script functions
ACS_Execute ACS_NamedExecute
ACS_ExecuteWait ACS_NamedExecuteWait
ACS_ExecuteAlways ACS_NamedExecuteAlways
ACS_ExecuteWithResult ACS_NamedExecuteWithResult
ACS_LockedExecute ACS_NamedLockedExecute
ACS_LockedExecuteDoor ACS_NamedLockedExecuteDoor
ACS_Suspend ACS_NamedSuspend
ACS_Terminate ACS_NamedTerminate
ScriptWait NamedScriptWait
FS_Execute UsePuzzleItem

External links