BIS fnc selectCrew: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=]{12})" to "|$1=$2 |descr=$3") |
Lou Montana (talk | contribs) m (Text replacement - "= <code>([^<{]+)<\/code>" to "= <sqf>$1</sqf>") |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma2 | |game1= arma2 | ||
|1.00 | |version1= 1.00 | ||
|game2= arma2oa | |game2= arma2oa | ||
Line 19: | Line 19: | ||
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"'')}} | ||
|s1=[side, configEntry] call [[BIS_fnc_selectCrew]] | |s1= [side, configEntry] call [[BIS_fnc_selectCrew]] | ||
|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) | ||
Line 25: | Line 25: | ||
|p2= configEntry: [[Config]] - the vehicle config path | |p2= configEntry: [[Config]] - the vehicle config path | ||
|r1=[[String]] - crew type, empty if crew type not found | |r1= [[String]] - crew type, empty if crew type not found | ||
|x1= < | |x1= <sqf>private _crewType = [blufor, configFile >> "CfgVehicles" >> "B_MRAP_01_F"] call BIS_fnc_selectCrew;</sqf> | ||
|seealso= [[crew]] | |seealso= [[crew]] [[createVehicleCrew]] | ||
}} | }} | ||
Latest revision as of 17:00, 13 July 2022
Description
- Description:
- Return an appropriate crew type for a certain vehicle.
- Execution:
- call
- Groups:
- Object Manipulation
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:
Additional Information
- See also:
- crew createVehicleCrew
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