Arma 3 Scripting

Command in Weapons

compatibleMagazines

Also available as Markdown and JSON, or read the original wiki page.

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:

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:

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