CBA_fnc_getNonPresetClass

Description

Get ancestor class of a weapon or container which has no preset attachments/contents.

Parameters

_itemClassname of weapon/container STRING
_configRootRoot config (“CfgWeapons”, “CfgVehicles”, ...)  STRING (Default: “CfgWeapons”)

Returns

Ancestor class without preset attachments/contents sub-class on success, “” otherwise STRING

Examples

// Get parent class without preset attachments of a weapon (returns "arifle_mx_f")
_ancestorClass = ["arifle_MX_ACO_pointer_F"] call CBA_fnc_getNonPresetClass;

Author

Jonpas

string used by format
Close