terminate: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Text replacement - "\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "$1$2</code>")
Line 32: Line 32:
|x1= <code>_script = [] [[execVM]] "script.sqf";
|x1= <code>_script = [] [[execVM]] "script.sqf";
[[sleep]] 5;
[[sleep]] 5;
[[terminate]] _script;</code>  
terminate _script;</code>  


|seealso= [[execVM]] [[spawn]] [[scriptDone]] [[halt]]
|seealso= [[execVM]] [[spawn]] [[scriptDone]] [[halt]]
}}
}}

Revision as of 12:33, 12 May 2022

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

Examples

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

Additional Information

See also:
execVM spawn scriptDone halt

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