From Bohemia Interactive Community
Hover & click on the images for description
Description
- 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.
- Groups:
- Weapons
Syntax
- Syntax:
- compatibleMagazines weaponOrAmmo
- Parameters:
- weaponOrAmmo: String - weapon class name or
2.22 ammo class name - Return Value:
- Array of Strings - all magazines that can be loaded in any muzzle of the given weapon or magazines containing given ammo.
- Syntax:
- compatibleMagazines [weapon, muzzle]
- Parameters:
- weapon: String - weapon class name
- muzzle: String - muzzle name ("this" is supported for primary muzzle)
- Return Value:
- 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"]
Additional Information
- See also:
- compatibleWeapons compatibleItems BIS_fnc_compatibleMagazines canAdd
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here!
Add Note