CBA_fnc_compatibleMagazines

Description

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

Parameters

_weaponWeapon configName or config
_allMuzzlesGet magazines for all muzzles on this weapon (default: false)

Example

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

Returns

Array of magazine classnames in config capitalization ARRAY

Author

PabstMirror, based on code from Dedmen

Array to read from [Array]
Close