BIS_fnc_spawnOrdered

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 3 version 1.961.96
Hover & click on the images for descriptions

Description

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

Syntax:
[params, functionName, mutexName] call BIS_fnc_spawnOrdered
Parameters:
params: Anything - Function params
functionName: String - Function name in current namespace
mutexName: String - (Optional, default functionName) This is a reference to group of spawns. It's saved in the missionNamespace variable BIS_fnc_spawnOrdered_mutexName
Return Value:
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 };

Additional Information

Execution:
call
See also:
spawn

Notes

i
Only post proven facts here. Report bugs on the feedback tracker. Use the Talk page or the Forums for discussions.