dmarkwick 261 Posted July 17, 2008 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
.kju 3240 Posted July 17, 2008 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
xeno 230 Posted July 18, 2008 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
kronzky 5 Posted July 20, 2008 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
dmarkwick 261 Posted July 20, 2008 Thanks for the tips guys very helpful. Share this post Link to post Share on other sites
.kju 3240 Posted July 21, 2008 neat. thanks Kronzky Share this post Link to post Share on other sites