Jump to content
Sign in to follow this  
dmarkwick

Discerning addons used

Recommended Posts

Is there any way to find out, via a script, what client-side addons are being used?

Or, more accurately, if a specific addon is being used?

Share this post


Link to post
Share on other sites

You can get the active cfgPatches classes via script i think.

Not sure about the actual script cmd right now.

Share this post


Link to post
Share on other sites

Try this one...

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

_name_to_search = "DMSmokeGrenadeVB";

_search_array = [];

for "_i" from 0 to (count (configFile >> "cfgPatches") - 1) do {

       _search_array = _search_array + [configName ((configFile >> "cfgPatches") select _i)];

};

if (_name_to_search in _search_array) then {

       player sideChat format ["%1 found !!!", _name_to_search];

} else {

       player sideChat format ["%1 not found !!!", _name_to_search];

};

Xeno

Share this post


Link to post
Share on other sites

With isClass you can directly check whether a particular addon is present, by looking for one of the classes it is using.

Share this post


Link to post
Share on other sites

neat. thanks Kronzky thumbs-up.gif

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  

×