Get ancestor class of a weapon or container which has no preset attachments/contents.
_item | Classname of weapon/container STRING |
_configRoot | Root config (“CfgWeapons”, “CfgVehicles”, ...) STRING (Default: “CfgWeapons”) |
Ancestor class without preset attachments/contents sub-class on success, “” otherwise STRING
// Get parent class without preset attachments of a weapon (returns "arifle_mx_f") _ancestorClass = ["arifle_MX_ACO_pointer_F"] call CBA_fnc_getNonPresetClass;
Jonpas