{"name":"BIS_fnc_compatibleMagazines","operator":null,"title":"BIS fnc compatibleMagazines","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_compatibleMagazines","revid":348182,"updated":"2023-11-08T11:39:58Z","groups":["Weapons"],"status":"deprecated","replaced_by":["compatibleMagazines"],"games":[{"game":"arma3","name":"Arma 3","version":"1.96"}],"since":{"game":"arma3","name":"Arma 3","version":"1.96"},"arma3_since":"1.96","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"> [!CAUTION]\n> This information is **obsolete**. Use compatibleMagazines instead.\n\nGets all compatible magazines for selected weapons. Function looks both for magazines listed in `magazines` array and compatible `magazineWells`.","syntaxes":[{"syntax":"[weapon, returnHidden] call BIS_fnc_compatibleMagazines","since":null,"effect":null,"exec":null,"params":[{"name":"weapon","type":"String","optional":false,"default":null,"description":"weapon's classname","types":["String"],"since":null,"text":"weapon: String - weapon's classname"},{"name":"returnHidden","type":"Boolean","optional":true,"default":"false","description":"true to also return magazines with scope 1","types":["Boolean"],"since":null,"text":"returnHidden: Boolean - (Optional, default false) true to also return magazines with scope 1"}],"returns":{"type":"Array","types":["Array"],"description":"array of magazine classes","text":"Array - array of magazine classes"}}],"examples":[{"text":"```sqf\n[\"arifle_mx_f\"] call BIS_fnc_compatibleMagazines;\n```","code":["[\"arifle_mx_f\"] call BIS_fnc_compatibleMagazines;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["currentMagazine","currentWeapon","compatibleMagazines"],"notes":[{"user":"PierreMGI","date":"2020-09-01T18:59:00Z","text":"This function returns all magazines in lower case.\n\nExample:\n\n```sqf\ncurrentMagazine player;                                    //  \"30Rnd_762x39_AK12_Mag_F\"\ncurrentWeapon player call BIS_fnc_compatibleMagazines;    // [\"30rnd_762x39_ak12_mag_f\", ...]\ncurrentMagazine player in (currentWeapon player call BIS_fnc_compatibleMagazines);                // never works\ntoLowerANSI currentMagazine player in (currentWeapon player call BIS_fnc_compatibleMagazines);    // works\n```"}],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Weapons","Functions","Introduced with Arma 3 version 1.96"],"docblock":null,"filled_from_docblock":[]}