武装突袭 Wiki
注册
Advertisement
  

点击图片可看到更多讯息

开始使用于

游戏:
Armed Assault
版本:
1.00

描述

描述:
Check if a script is finished running using the Script_(Handle) returned by execVM or spawn.

基本句法

句法:
scriptDone handle
参数:
handle: Script_(Handle) returned by spawn or execVM
返回值:
Boolean

范例

范例1:
SQS Syntax:@scriptDone _Handle
范例2:
SQF Syntax:script_handler = [parameters] execVM "scriptname.sqf"; waitUntil { scriptDone script_handler };

额外资讯

多人游戏:
-
也可以看看:
execVMspawnterminatescriptNull

注意事项

此处撰写句法皆为可行用法. 可到官网[1]专页回报错误. 你可以使用讨论页面或是论坛来进行讨论.
新增注意事项 | 如何新增?

Notes

Posted on 03:54, 11 September 2009
Bn880
A Null Script handle can be created in this manner: _handle = 0 spawn {}; That is what any Script_(Handle) becomes when a script is finished running, meaning it will test as true with: scriptDone _handle and it returns "<NULL-script>" when converted to string. This in turn lets you initialize the variable with a completed Script_(Handle) and lets you test the variable even though nothing else may have set the handle by creating a script with spawn or execVM. It also lets you store and manage script handles in arrays, and a few other sexy things.

Bottom Section

Advertisement