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.

Script functions
ACS_ExecuteACS_NamedExecute
ACS_ExecuteWaitACS_NamedExecuteWait
ACS_ExecuteAlwaysACS_NamedExecuteAlways
ACS_ExecuteWithResultACS_NamedExecuteWithResult
ACS_LockedExecuteACS_NamedLockedExecute
ACS_LockedExecuteDoorACS_NamedLockedExecuteDoor
ACS_SuspendACS_NamedSuspend
ACS_TerminateACS_NamedTerminate
ScriptWaitNamedScriptWait
FS_ExecuteUsePuzzleItem
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.