{"name":"compatibleMagazines","title":"compatibleMagazines","type":"command","url":"https://community.bistudio.com/wiki/compatibleMagazines","revid":376900,"updated":"2025-12-20T16:40:46Z","groups":["Weapons"],"status":"ok","games":{"arma3":"2.10"},"since":"arma3 2.10","arma3_since":"2.10","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.","syntaxes":[{"syntax":"compatibleMagazines weaponOrAmmo","params":[{"name":"weaponOrAmmo","type":"String","description":"weapon class name or Arma 3 v2.22 ammo class name","type_expr":"String"}],"returns":{"type":"Array of Strings","type_expr":"Array<String>","description":"all magazines that can be loaded in any muzzle of the given weapon or magazines containing given ammo.","text":"Array of Strings - all magazines that can be loaded in **any muzzle** of the given weapon or magazines containing given ammo."},"form":"unary","right":{"text":"weaponOrAmmo"}},{"syntax":"compatibleMagazines [weapon, muzzle]","params":[{"name":"weapon","type":"String","description":"weapon class name","type_expr":"String"},{"name":"muzzle","type":"String","description":"muzzle name (\"this\" is supported for primary muzzle)","type_expr":"String"}],"returns":{"type":"Array of Strings","type_expr":"Array<String>","description":"all magazines that can be loaded in the given muzzle of the given weapon."},"form":"unary","right":{"text":"[weapon, muzzle]"}}],"examples":[{"code":["compatibleMagazines \"arifle_Katiba_GL_F\";"]},{"code":["compatibleMagazines [\"arifle_Katiba_GL_F\", \"this\"];"]},{"code":["compatibleMagazines [\"arifle_Katiba_GL_F\", \"EGLM\"];"]},{"code":["compatibleMagazines \"B_65x39_Caseless_green\"; // [\"30Rnd_65x39_caseless_green\", \"30Rnd_65x39_caseless_green_mag_Tracer\"]"]}],"see_also":["compatibleWeapons","compatibleItems","BIS_fnc_compatibleMagazines","canAdd"]}