Reports class name of base weapon without attachments and all attachments belonging to a pre equipped weapon.
Base weapon and attachments are reported in lower case capitalization. Fixed version of BIS_fnc_weaponComponents.
_weapon | a weapons class name with attachments build in STRING |
_components | class names of base weapon + attachments. ARRAY attachments are in random order, but weapon is always at first position empty array if weapon does not exist in config |
_components = (primaryWeapon player) call CBA_fnc_weaponComponents;
commy2, based on BIS_fnc_weaponComponents by Jiri Wainar