BIS fnc limitAmmunition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[cC]ategory:\{\{Name\|arma3\}\}: [fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "")
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ :\\\-\/|()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
Line 32: Line 32:
|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>


| [[BIS_fnc_limitWeaponItems]], [[BIS_fnc_limitItems]]
|seealso= [[BIS_fnc_limitWeaponItems]], [[BIS_fnc_limitItems]]
}}
}}

Revision as of 00:26, 17 February 2021

Hover & click on the images for description

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

Examples

Example 1:
player call BIS_fnc_limitAmmunition;
Example 2:
[ player,[],[0.5,0.5],[0,1] ] call BIS_fnc_limitAmmunition;

Additional Information

See also:
BIS_fnc_limitWeaponItemsBIS_fnc_limitItems

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