{"name":"BIS_fnc_selectCrew","operator":null,"title":"BIS fnc selectCrew","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_selectCrew","revid":328398,"updated":"2022-07-13T16:00:49Z","groups":["Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Return an appropriate crew type for a certain vehicle.\n\n> [!IMPORTANT]\n> This function should work properly in Arma 3, but be aware that if \"crew\" config entry is not defined in vehicle config then specific Arma 2 class names will be used as default values (*\"USMC_Soldier_Crew\"*, *\"US_Soldier_Crew_EP1\"*, *\"RU_Soldier_Crew\"*, *\"TK_Soldier_Crew_EP1\"*)","syntaxes":[{"syntax":"[side, configEntry] call BIS_fnc_selectCrew","since":null,"effect":null,"exec":null,"params":[{"name":"side","type":"Side","optional":false,"default":null,"description":"only supports west (blufor) and east (opfor) for default value (if \"crew\" entry is not found)","types":["Side"],"since":null,"text":"side: Side - only supports west (blufor) and east (opfor) for default value (if \"crew\" entry is not found)"},{"name":"configEntry","type":"Config","optional":false,"default":null,"description":"the vehicle config path","types":["Config"],"since":null,"text":"configEntry: Config - the vehicle config path"}],"returns":{"type":"String","types":["String"],"description":"crew type, empty if crew type not found","text":"String - crew type, empty if crew type not found"}}],"examples":[{"text":"```sqf\nprivate _crewType = [blufor, configFile >> \"CfgVehicles\" >> \"B_MRAP_01_F\"] call BIS_fnc_selectCrew;\n```","code":["private _crewType = [blufor, configFile >> \"CfgVehicles\" >> \"B_MRAP_01_F\"] call BIS_fnc_selectCrew;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["crew","createVehicleCrew"],"notes":[],"categories":["Arma 2: Functions","Arma 2: New Functions","Arma 2: Operation Arrowhead: Functions","Arma 3: Functions","Function Group: Object Manipulation","Functions","Introduced with Arma 2 version 1.00","Take On Helicopters: Functions"],"docblock":null,"filled_from_docblock":[]}