BIS_fnc_selectCrew

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 2 version1.00
  

Click on the images for descriptions

Introduced in

Game:
Arma 2
Version:
1.00

Description

Description:
Return an appropriate crew type for a certain vehicle.
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")

Syntax

Syntax:
[side, configEntry] call BIS_fnc_selectCrew
Parameters:
side: Side - only supports west (blufor) and east (opfor) for default value (if "crew" entry is not found)
configEntry: Config - the vehicle config path
Return Value:
String - crew type, empty if crew type not found

Examples

Example 1:
_crewType = [blufor, configFile >> "CfgVehicles" >> "B_MRAP_01_F"] call BIS_fnc_selectCrew;

Additional Information

Execution:
call
Multiplayer:
-
See also:
crewcreateVehicleCrew

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section