terminate: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma1 |Game name=
| arma1


|gr1= Program Flow |GROUP1=
|gr1= Program Flow


|1.00|Game version=
|1.00


| Terminates (aborts) [[spawn]]ed or [[execVM]]ed script.
| Terminates (aborts) [[spawn]]ed or [[execVM]]ed 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|scheduler]]}}|DESCRIPTION=
{{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|scheduler]]}}


| '''terminate''' scriptHandle |SYNTAX=
| '''terminate''' scriptHandle


|p1= scriptHandle: [[Script]] |PARAMETER1=
|p1= scriptHandle: [[Script]]


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]


|x1 = <code>_script = [] [[execVM]] "script.sqf";
|x1 = <code>_script = [] [[execVM]] "script.sqf";
Line 21: Line 21:




| [[execVM]], [[spawn]], [[scriptDone]], [[halt]] |SEEALSO=
| [[execVM]], [[spawn]], [[scriptDone]], [[halt]]


}}
}}

Revision as of 12:25, 18 January 2021

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
Return Value:
Nothing

Examples

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

Additional Information

See also:
execVMspawnscriptDonehalt

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