BIS fnc selectCrew: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page filling) |
m (template:command argument fix) |
||
Line 9: | Line 9: | ||
| Return an appropriate crew type for a certain vehicle.<br /> | | Return an appropriate crew type for a certain vehicle.<br /> | ||
{{Important| | {{Important| | ||
This function should work properly in {{arma3}}, but be aware that if "crew" config entry is not defined in vehicle config then specific {{arma2}} class names will be used as default values (''"USMC_Soldier_Crew"'', ''"US_Soldier_Crew_EP1"'', ''"RU_Soldier_Crew"'', ''"TK_Soldier_Crew_EP1"'')}} |= | This function should work properly in {{arma3}}, but be aware that if "crew" config entry is not defined in vehicle config then specific {{arma2}} class names will be used as default values (''"USMC_Soldier_Crew"'', ''"US_Soldier_Crew_EP1"'', ''"RU_Soldier_Crew"'', ''"TK_Soldier_Crew_EP1"'')}} |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [side, configEntry] call [[BIS_fnc_selectCrew]] |= | | [side, configEntry] call [[BIS_fnc_selectCrew]] |SYNTAX= | ||
|p1= side: [[Side]] - only supports [[west]] ([[blufor]]) and [[east]] ([[opfor]]) for default value (if "crew" entry is not found) |= | |p1= side: [[Side]] - only supports [[west]] ([[blufor]]) and [[east]] ([[opfor]]) for default value (if "crew" entry is not found) |PARAMETER1= | ||
|p2= configEntry: [[Config]] - the vehicle config path |= | |p2= configEntry: [[Config]] - the vehicle config path |PARAMETER2= | ||
| [[String]] - crew type, empty if crew type not found |= | | [[String]] - crew type, empty if crew type not found |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>_crewType = <nowiki>[</nowiki>[[blufor]], [[configFile]] >> "CfgVehicles" >> "B_MRAP_01_F"] [[call]] [[BIS_fnc_selectCrew]];</code> |= | |x1= <code>_crewType = <nowiki>[</nowiki>[[blufor]], [[configFile]] >> "CfgVehicles" >> "B_MRAP_01_F"] [[call]] [[BIS_fnc_selectCrew]];</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[crew]], [[createVehicleCrew]] |= | | [[crew]], [[createVehicleCrew]] |SEEALSO= | ||
}} | }} | ||
Revision as of 15:33, 7 April 2019
Description
- Description:
- Return an appropriate crew type for a certain vehicle.
- Execution:
- call
- Groups:
- Uncategorised
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
- See also:
- crewcreateVehicleCrew
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note