{"name":"compatibleMagazines","operator":null,"title":"compatibleMagazines","type":"command","url":"https://community.bistudio.com/wiki/compatibleMagazines","revid":376900,"updated":"2025-12-20T16:40:46Z","groups":["Weapons"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.10"}],"since":{"game":"arma3","name":"Arma 3","version":"2.10"},"arma3_since":"2.10","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"weaponOrAmmo","type":"String","optional":false,"default":null,"description":"weapon class name or Arma 3 v2.22 ammo class name","types":["String"],"since":null,"text":"weaponOrAmmo: String - weapon class name or Arma 3 v2.22 ammo class name"}],"returns":{"type":"Array of Strings","types":["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","operator":null,"left":null,"right":{"text":"weaponOrAmmo","types":["String"]}},{"syntax":"compatibleMagazines [weapon, muzzle]","since":null,"effect":null,"exec":null,"params":[{"name":"weapon","type":"String","optional":false,"default":null,"description":"weapon class name","types":["String"],"since":null,"text":"weapon: String - weapon class name"},{"name":"muzzle","type":"String","optional":false,"default":null,"description":"muzzle name (\"this\" is supported for primary muzzle)","types":["String"],"since":null,"text":"muzzle: String - muzzle name (\"this\" is supported for primary muzzle)"}],"returns":{"type":"Array of Strings","types":["Array","String"],"description":"all magazines that can be loaded in the given muzzle of the given weapon.","text":"Array of Strings - all magazines that can be loaded in the given muzzle of the given weapon."},"form":"unary","operator":null,"left":null,"right":{"text":"[weapon, muzzle]","types":["Array"]}}],"examples":[{"text":"```sqf\ncompatibleMagazines \"arifle_Katiba_GL_F\";\n```","code":["compatibleMagazines \"arifle_Katiba_GL_F\";"]},{"text":"```sqf\ncompatibleMagazines [\"arifle_Katiba_GL_F\", \"this\"];\n```","code":["compatibleMagazines [\"arifle_Katiba_GL_F\", \"this\"];"]},{"text":"```sqf\ncompatibleMagazines [\"arifle_Katiba_GL_F\", \"EGLM\"];\n```","code":["compatibleMagazines [\"arifle_Katiba_GL_F\", \"EGLM\"];"]},{"text":"```sqf\ncompatibleMagazines \"B_65x39_Caseless_green\"; // [\"30Rnd_65x39_caseless_green\", \"30Rnd_65x39_caseless_green_mag_Tracer\"]\n```","code":["compatibleMagazines \"B_65x39_Caseless_green\"; // [\"30Rnd_65x39_caseless_green\", \"30Rnd_65x39_caseless_green_mag_Tracer\"]"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["compatibleWeapons","compatibleItems","BIS_fnc_compatibleMagazines","canAdd"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Weapons","Introduced with Arma 3 version 2.10","Scripting Commands"]}