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:
scriptHandle: Script Handle
Returns: Nothing
Syntax 2
since arma3 2.18
terminate FSMHandle
Parameters:
FSMHandle: Number - The FSM script must be launched with 'allowTermination' flag for this command to work (see execFSM).
Returns: Nothing
Syntax 3
since arma3 2.22
scriptHandle terminate result
Parameters:
scriptHandle: Script Handle - Only "Empty Handle"'s can have their result set.result: Anything - The result to write into the Promise
Returns: Nothing
Examples
Example 1
_script = [] execVM "script.sqf";
sleep 5;
terminate _script;
See also
execVM · spawn · scriptDone · halt · execFSM