{"name":"BIS_fnc_spawnCrew","title":"BIS fnc spawnCrew","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_spawnCrew","revid":348006,"updated":"2023-11-08T11:22:26Z","groups":["Object Manipulation"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Function to fill all crew positions in a vehicle, including turrets.\nIn dummy mode no objects are created and the returned array contains only ones; this mode can be used to count the actual crew of an existing vehicle or vehicle type (see also crew, fullCrew).","syntaxes":[{"syntax":"[vehicle, group, dummyMode, dummyType, crewType]] call BIS_fnc_spawnCrew","params":[{"name":"vehicle","type":"Object","description":"vehicle","type_expr":"Object"},{"name":"group","type":"Group","description":"crew's group","type_expr":"Group"},{"name":"dummyMode","type":"Boolean","optional":true,"default":"false","description":"true to enable dummy mode","type_expr":"Boolean","text":"dummyMode: Boolean - (Optional, default false) true to enable dummy mode"},{"name":"dummyType","type":"String","optional":true,"default":"\"\"","description":"dummy type","type_expr":"String","text":"dummyType: String - (Optional, default \"\") dummy type"},{"name":"crewType","type":"String","optional":true,"default":"\"\"","description":"crew type","type_expr":"String","text":"crewType: String - (Optional, default \"\") crew type"}],"returns":{"type":"Array or Number","type_expr":"Array | Number","description":"created crew objects or crew count"}}],"examples":[{"code":["[BIS_vehicle, group player] call BIS_fnc_spawnCrew;"]}],"see_also":["crew","fullCrew"],"notes":[{"user":"Tankbuster","date":"2015-02-24T21:52:00Z","text":"This makes FFV units but no cargo crew."}]}