BIS fnc selectCrew: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<br />" to "<br>")
m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ")
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| arma2 |Game name=
| arma2


|1.00|Game version=
|1.00
____________________________________________________________________________________________
 
|gr1= Object Manipulation


| Return an appropriate crew type for a certain vehicle.<br>
| Return an appropriate crew type for a certain vehicle.<br>
{{Important|
{{Feature|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"'')}} |DESCRIPTION=
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"'')}}
____________________________________________________________________________________________


| [side, configEntry] call [[BIS_fnc_selectCrew]] |SYNTAX=
| [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) |PARAMETER1=
|p1= side: [[Side]] - only supports [[west]] ([[blufor]]) and [[east]] ([[opfor]]) for default value (if "crew" entry is not found)


|p2= configEntry: [[Config]] - the vehicle config path |PARAMETER2=
|p2= configEntry: [[Config]] - the vehicle config path


| [[String]] - crew type, empty if crew type not found |RETURNVALUE=
| [[String]] - crew type, empty if crew type not found
____________________________________________________________________________________________


|x1= <code>_crewType = [<nowiki/>[[blufor]], [[configFile]] >> "CfgVehicles" >> "B_MRAP_01_F"] [[call]] [[BIS_fnc_selectCrew]];</code> |EXAMPLE1=
|x1= <code>_crewType = [<nowiki/>[[blufor]], [[configFile]] >> "CfgVehicles" >> "B_MRAP_01_F"] [[call]] [[BIS_fnc_selectCrew]];</code>
____________________________________________________________________________________________


| [[crew]], [[createVehicleCrew]] |SEEALSO=
|seealso= [[crew]], [[createVehicleCrew]]
}}
}}


<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Spawning|{{uc:selectCrew}}]]
[[Category:Functions|{{uc:selectCrew}}]]
[[Category:{{Name|arma2}}: Functions|{{uc:selectCrew}}]]
[[Category:{{Name|arma2}}: Functions|{{uc:selectCrew}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:selectCrew}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:selectCrew}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:selectCrew}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:selectCrew}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:selectCrew}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:selectCrew}}]]

Revision as of 13:41, 11 April 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
Object Manipulation

Syntax

Syntax:
Syntax needed
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:
Return value needed

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