Arma 3 Scripting

BIS_fnc_spawnOrdered

  • Arma 3 v1.96

Function · Markdown · JSON · original wiki page

Description

Spawns given function and executes it in the order it was called in case multiple calls are made. If mutex name is not specified, function name is used.

Syntax

[params, functionName, mutexName] call BIS_fnc_spawnOrdered

Parameters:

Returns: Boolean - returns false if function name is empty, otherwise true

Examples

Example 1

myFnc = { diag_log [_this, canSuspend] };
for "_i" from 0 to 1000 do { [_i, "myFnc"] call BIS_fnc_spawnOrdered };

See also

spawn