{"name":"BIS_fnc_spawnOrdered","title":"BIS fnc spawnOrdered","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_spawnOrdered","revid":349081,"updated":"2023-11-08T14:47:23Z","groups":["Program Flow"],"status":"ok","games":{"arma3":"1.96"},"since":"arma3 1.96","arma3_since":"1.96","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.","syntaxes":[{"syntax":"[params, functionName, mutexName] call BIS_fnc_spawnOrdered","params":[{"name":"params","type":"Anything","description":"function parameters","type_expr":"Anything"},{"name":"functionName","type":"String","description":"function name in current namespace","type_expr":"String"},{"name":"mutexName","type":"String","optional":true,"default":"functionName","description":"this is a reference to group of spawns. It's saved in the missionNamespace variable **BIS_fnc_spawnOrdered_mutexName**","type_expr":"String","text":"mutexName: String - (Optional, default functionName) this is a reference to group of spawns. It's saved in the missionNamespace variable **BIS_fnc_spawnOrdered_mutexName**"}],"returns":{"type":"Boolean","type_expr":"Boolean","description":"returns false if function name is empty, otherwise true"}}],"examples":[{"code":["myFnc = { diag_log [_this, canSuspend] };\nfor \"_i\" from 0 to 1000 do { [_i, \"myFnc\"] call BIS_fnc_spawnOrdered };"]}],"see_also":["spawn"]}