Hi all,
I want to call BIS_fnc_unitAddon to get the addon from which an object came from, but I only have a config:
_weapons = [configFile >> "CfgGlasses",0] call BIS_fnc_returnChildren;
{
_configName = configName _x;
_addon = [ configFile >> "CfgGlasses" >> _configName ] call BIS_fnc_unitAddon;
diag_log text(format['addon: "%1",',_addon]);
}
} foreach _weapons;
This fails as it expects an object, instead of a config.
How can I call this function properly?