Description
Returns all magazines that can be loaded in the given weapon or all magazines containing the provided ammo. No compatible magazines are returned for submunition or missiles.
Syntax
Syntax 1
compatibleMagazines weaponOrAmmo
Parameters:
weaponOrAmmo: String - weapon class name or Arma 3 v2.22 ammo class name
Returns: Array of Strings - all magazines that can be loaded in any muzzle of the given weapon or magazines containing given ammo.
Syntax 2
compatibleMagazines [weapon, muzzle]
Parameters:
weapon: String - weapon class namemuzzle: String - muzzle name ("this" is supported for primary muzzle)
Returns: Array of Strings - all magazines that can be loaded in the given muzzle of the given weapon.
Examples
Example 1
compatibleMagazines "arifle_Katiba_GL_F";
Example 2
compatibleMagazines ["arifle_Katiba_GL_F", "this"];
Example 3
compatibleMagazines ["arifle_Katiba_GL_F", "EGLM"];
Example 4
compatibleMagazines "B_65x39_Caseless_green"; // ["30Rnd_65x39_caseless_green", "30Rnd_65x39_caseless_green_mag_Tracer"]
See also
compatibleWeapons · compatibleItems · BIS_fnc_compatibleMagazines · canAdd