{"name":"BIS_fnc_selectCrew","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","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","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","params":[{"name":"side","type":"Side","description":"only supports west (blufor) and east (opfor) for default value (if \"crew\" entry is not found)","type_expr":"Side"},{"name":"configEntry","type":"Config","description":"the vehicle config path","type_expr":"Config"}],"returns":{"type":"String","type_expr":"String","description":"crew type, empty if crew type not found"}}],"examples":[{"code":["private _crewType = [blufor, configFile >> \"CfgVehicles\" >> \"B_MRAP_01_F\"] call BIS_fnc_selectCrew;"]}],"see_also":["crew","createVehicleCrew"]}