Arma 3 Scripting

BIS_fnc_selectCrew

  • Arma 3 v0.50
  • First in Arma 2 v1.00

Function · Markdown · JSON · original wiki page

Description

Return an appropriate crew type for a certain vehicle.

Important

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

[side, configEntry] call BIS_fnc_selectCrew

Parameters:

Returns: String - crew type, empty if crew type not found

Examples

Example 1

private _crewType = [blufor, configFile >> "CfgVehicles" >> "B_MRAP_01_F"] call BIS_fnc_selectCrew;

See also

crew · createVehicleCrew