Arma 3 Scripting

Command in Program Flow

terminate

Also available as Markdown and JSON, or read the original wiki page.

Description

Terminates (aborts) spawned or execVMed script.

Important

The given script will not terminate immediately upon terminate command execution, it will do so the next time the script is processed by the scheduler

Syntax

Syntax 1

terminate scriptHandle

Parameters:

Returns: Nothing

Syntax 2

since arma3 2.18

terminate FSMHandle

Parameters:

Returns: Nothing

Syntax 3

since arma3 2.22

scriptHandle terminate result

Parameters:

Returns: Nothing

Examples

Example 1

_script = [] execVM "script.sqf";
sleep 5;
terminate _script;

See also

execVM · spawn · scriptDone · halt · execFSM