CBA_fnc_compatibleItems

Description

Return all compatible weapon attachments.

Parameters

_weaponA weapons class name STRING
_typefilterOptional filter.  Can be “muzzle”, “optic”, “pointer” or “bipod”.  <STRING, NUMBER>

Returns

Class names of attachments compatible with weapon ARRAY

Examples

_acclist = ["LMG_Mk200_F"] call CBA_fnc_compatibleItems;
_muzzleacclist = ["LMG_Mk200_F", "muzzle"] call CBA_fnc_compatibleItems;

Author

Original by Karel Moricky, Enhanced by Robalo, jokoho, commy2

string used by format
Array to read from [Array]
Close