Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:

Checks if a script, called using execVM or spawn, has completed.

There is a minor delay (about 0.02 seconds), before the status for terminated scripts is set to true.

Syntax

Syntax:scriptDone handle
Parameters:
Return Value:Boolean - If true, then the script has completed.

Examples

Examples:
Usage with an execVM script:
_handle = [] execVM "someScript.sqf"; waitUntil {scriptDone _handle};
Usage with a spawned function:
_handle = [] spawn {
  sleep 3;
  player sidechat "spawn ended"; 
};
player sidechat "spawn started"; 
waitUntil {scriptDone _handle};
player sidechat "spawn finished"; 

Additional Information

See also: execVM, spawn
Multiplayer:
Problems:

Notes