BIS fnc limitAmmunition: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|( *\[\[[a-zA-Z]+\]\]) * \|x1=" to "\|r1=$1 \|x1=") |
Lou Montana (talk | contribs) m (Text replacement - "\|" to "|") |
||
Line 26: | Line 26: | ||
*1:maxMags - Maximum amount of magazines in percent (%) | *1:maxMags - Maximum amount of magazines in percent (%) | ||
|r1= [[Boolean]] | |||
|x1= <code>[[player]] [[call]] [[BIS_fnc_limitAmmunition]];</code> | |||
|x2= <code>[ [[player]],[],[0.5,0.5],[0,1] ] [[call]] [[BIS_fnc_limitAmmunition]];</code> | |x2= <code>[ [[player]],[],[0.5,0.5],[0,1] ] [[call]] [[BIS_fnc_limitAmmunition]];</code> |
Revision as of 10:30, 10 June 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- Inventory
Syntax
- Syntax:
- Syntax needed
- Parameters:
- unit: Object
- uniformMags: Array - (Optional, default [0.4,0.8]) Amount of magazines in uniform. Array in form:
- 0:minMags - Minimum amount of magazines in percent (%)
- 1:maxMags - Maximum amount of magazines in percent (%)
- vestMags: Array - (Optional, default [0.4,0.8]) Amount of magazines in vest. Array in form:
- 0:minMags - Minimum amount of magazines in percent (%)
- 1:maxMags - Maximum amount of magazines in percent (%)
- backpackMags: Array - (Optional, default [0.4,0.8]) Amount of magazines in backpack. Array in form:
- 0:minMags - Minimum amount of magazines in percent (%)
- 1:maxMags - Maximum amount of magazines in percent (%)
- Return Value:
- Boolean
Examples
- Example 1:
player call BIS_fnc_limitAmmunition;
- Example 2:
[ player,[],[0.5,0.5],[0,1] ] call BIS_fnc_limitAmmunition;
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