Squirtman 5 Posted February 25, 2018 With the code below you are able to create an array with all the magazines that can be used in a weapon. What i would like to know is there some way to do the same thing with attachments/accessories. I've looked at several weapons in the config viewer but i haven't been able to tell what determines what controls what attachments are allowed. Thank you in advance for your time and any assistance you can provide. _weap = selectrandom ["hgun_Pistol_heavy_01_F", "hgun_ACPC2_F","hgun_P07_F"]; _mags = (getArray(configFile >> 'CfgWeapons' >> _weap >> 'magazines')); Share this post Link to post Share on other sites
Dedmen 2588 Posted February 27, 2018 _compatibleItems = "<weapon classname>" call BIS_fnc_compatibleItems; Share this post Link to post Share on other sites
Squirtman 5 Posted February 28, 2018 Thank you very much kind sir @Dedmen Share this post Link to post Share on other sites