Arma 3 Scripting

terminate

  • Arma 3 v0.50
  • First in Operation Flashpoint: Elite v1.00

Command · Markdown · JSON · 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