CBA_fnc_compatibleMagazines

Description

Retrieves a list of magazines that are compatible with a weapon.

Parameters

_weaponWeapon class name or config <STRING, CONFIG>
_allMuzzlesGet magazines for all muzzles on this weapon (optional, default: false) <BOOL>

Returns

Array of magazine classnames in config capitalization ARRAY

Examples

_mags = ["arifle_MX_SW_F"] call CBA_fnc_compatibleMagazines;
_mags = [configFile >> "CfgWeapons" >> _rifle >> _glMuzzle] call CBA_fnc_compatibleMagazines;

Author

PabstMirror, based on code from Dedmen

Array to read from [Array]
Close