CBA_fnc_weaponComponents

Description

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.

Parameters

_weapona weapons class name with attachments build in STRING

Returns

_componentsclass 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

Examples

_components = (primaryWeapon player) call CBA_fnc_weaponComponents;

Author

commy2, based on BIS_fnc_weaponComponents by Jiri Wainar

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