Arma 3 Scripting

BIS_fnc_limitWeaponItems

  • Arma 3 v1.00

Function · Markdown · JSON · original wiki page

Description

Keeps or remove unit's weapon attachments based on probability user sets. Apply for primary, secondary or handgun weapon separately.

Syntax

[unit, mode, chanceOptics, chanceAttach, chanceMuzzle, chanceUnderbarrel] call BIS_fnc_limitWeaponItems

Parameters:

Returns: Boolean

Examples

Example 1

player call BIS_fnc_limitWeaponItems;

Example 2

[[player, 0, 25, 50, 75, 100]]  call BIS_fnc_limitWeaponItems;

Example 3

[[player, 0, ["optic_lrps", 100], ["acc_pointer_ir", 100], ["muzzle_snds_B", 100], ["bipod_01_F_blk", 100]]] call BIS_fnc_limitWeaponItems;

See also

BIS_fnc_limitAmmunition · BIS_fnc_limitItems