Jump to navigation Jump to search
Hover & click on the images for descriptions
- Get all compatible magazines for selected weapons. Function looks both for magazines listed in "magazines" array & compatibile magazineWells.
- [weapon, returnHidden] call BIS_fnc_compatibleMagazines
- weapon: String - Classname of the weapon
- returnHidden: Boolean - (Optional, default false) true to also return magazines with scope 1
- Return Value:
- Array - Array of magazine classes
- Posted on September 1, 2020 - 18:59 (UTC)
This function returns all magazines in lower case.
currentMagazine player // "30Rnd_762x39_AK12_Mag_F"
currentWeapon player call BIS_fnc_compatibleMagazines; // ["30rnd_762x39_ak12_mag_f",....]
currentMagazine player in (currentWeapon player call BIS_fnc_compatibleMagazines) // never works
toLowerANSI currentMagazine player in (currentWeapon player call BIS_fnc_compatibleMagazines) // works