Jump to content
Sign in to follow this  
Gemberkoekje

getting the addon of which a class belongs to

Recommended Posts

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?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×