CBA_fnc_determineMuzzles

Description

Gets the list of possible muzzles for a weapon.

Parameters

_weapname of the weapon to examine [String]

Returns

  • array of muzzle names if the weapon has muzzles and the first muzzle is not “this”
  • nil (nothing) otherwise

Examples

_muzzles = "M4A1_RCO_GL" call CBA_fnc_determineMuzzles
// _muzzles = ["M4_ACOG_Muzzle", "M203Muzzle"]

Author

Close