BIS fnc unitHeadgear: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
||
Line 38: | Line 38: | ||
| [[Description.ext#CfgUnitTemplates|Description.ext/CfgUnitTemplates]], [[addGoggles]], [[addHeadgear]] |See also= | | [[Description.ext#CfgUnitTemplates|Description.ext/CfgUnitTemplates]], [[addGoggles]], [[addHeadgear]] |See also= | ||
}} | }} | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Functions|{{uc:unitHeadgear}}]] | [[Category:Functions|{{uc:unitHeadgear}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc:unitHeadgear}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:unitHeadgear}}]] |
Revision as of 13:53, 17 January 2021
Description
Syntax
- Syntax:
- [unit, headgear, facewear] call BIS_fnc_unitHeadgear
- Parameters:
- unit: Object
- headgear: Boolean, String or Array - (Optional, default false) can be one of:
- Boolean - if false, change nothing to the headgear
- String - valid Headgear class or a valid class from Description.ext CfgUnitTemplates
- Array - headgear list with individual probability
- facewear: Boolean, String or Array - (Optional, default false) can be one of:
- Boolean - if false, change nothing to the facewear
- String - valid facewear class or a valid class from Description.ext CfgUnitTemplates
- Array - facewear list with individual probability
- Return Value:
- Boolean - true when done
Examples
- Example 1:
[this] call BIS_fnc_unitHeadgear; // headgear and face wear, same as [this, [], []]
- Example 2:
[this, [], []] call BIS_fnc_unitHeadgear; // headgear only
- Example 3:
[this, nil, []] call BIS_fnc_unitHeadgear; // facewear only
- Example 4:
[this, "myTemplate"] call BIS_fnc_unitHeadgear; // class defined in Description.ext CfgUnitTemplates
Additional Information
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