{"name":"BIS_fnc_compatibleMagazines","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":{"arma3":"1.96"},"since":"arma3 1.96","arma3_since":"1.96","description":"> [!CAUTION]\n> This information is **obsolete** as of Arma 3 v2.10. Reason:\n> 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","params":[{"name":"weapon","type":"String","description":"weapon's classname","type_expr":"String"},{"name":"returnHidden","type":"Boolean","optional":true,"default":"false","description":"true to also return magazines with scope 1","type_expr":"Boolean","text":"returnHidden: Boolean - (Optional, default false) true to also return magazines with scope 1"}],"returns":{"type":"Array","type_expr":"Array","description":"array of magazine classes"}}],"examples":[{"code":["[\"arifle_mx_f\"] call BIS_fnc_compatibleMagazines;"]}],"see_also":["currentMagazine","currentWeapon","compatibleMagazines"],"notes":[{"user":"PierreMGI","date":"2020-09-01T18:59:00Z","text":"This function returns all magazines in lower case.\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```"}]}