Difference between revisions of "BIS fnc spawnOrdered"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (fixed game version)
m (fixed default value)
Line 19: Line 19:
 
|p2= functionName: [[String]] - Function name in current namespace
 
|p2= functionName: [[String]] - Function name in current namespace
  
|p3= mutexName: [[String]] - (Optional, default "") This is a reference to group of spawns
+
|p3= mutexName: [[String]] - (Optional, default functionName) This is a reference to group of spawns
  
 
|r1= [[Boolean]] - Returns [[false]] if function name is empty, otherwise [[true]]
 
|r1= [[Boolean]] - Returns [[false]] if function name is empty, otherwise [[true]]

Revision as of 11:01, 21 May 2020

Hover & click on the images for description

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.
Execution:
call
Groups:
Uncategorised

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
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

See also:
spawn

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