terminate

From Bohemia Interactive Community
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Hover & click on the images for description

Description

Description:
Terminates (aborts) spawned or execVMed script.
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
Groups:
Program Flow

Syntax

Syntax:
terminate scriptHandle
Parameters:
scriptHandle: Script Handle
Return Value:
Nothing

Alternative Syntax

Syntax:
terminate FSMHandle
Parameters:
FSMHandle: Number - The FSM script must be launched with 'allowTermination' flag for this command to work (see execFSM).
Return Value:
Nothing

Examples

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

Additional Information

See also:
execVM spawn scriptDone halt execFSM

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note