scriptDone: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Check if given script already finished. |= Description
| Check if an SQF script is already finished using the return value of execVM command as the argument. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Boolean]]<nowiki>=</nowiki> '''scriptDone''' [[Script (Handle)]] |= Syntax
| '''scriptDone''' [[Script (Handle)]] |= Syntax


| [[Boolean]] |= Return value
| [[Boolean]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
|x1=@ScriptDone _Handle
|x1=@ScriptDone _Handle
|x2= <code>script_handler <nowiki>=</nowiki> [parameters] execVM "scriptname.sqf";
waitUntil {!scriptDone script_handler};</code> |= Example 2
____________________________________________________________________________________________
|  |= See also
|  |= See also



Revision as of 14:40, 10 September 2007

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Check if an SQF script is already finished using the return value of execVM command as the argument.
Groups:
Uncategorised

Syntax

Syntax:
scriptDone Script (Handle)
Return Value:
Boolean

Examples

Example 1:
@ScriptDone _Handle
Example 2:
script_handler = [parameters] execVM "scriptname.sqf"; waitUntil {!scriptDone script_handler};

Additional Information

See also:
See also needed

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

Notes

Bottom Section