Description
Return addon from CfgPatches to which a given weapon class belongs to.
Important
This function is quite performance heavy, use only when absolutely necessary!
Syntax
classname call BIS_fnc_weaponAddon
Parameters:
- classname String - weapon's classname
Returns: String - addon's config name
Examples
Example 1
"arifle_MX_F" call BIS_fnc_weaponAddon; // returns "A3_Weapons_F_Rifles_MX"