Victim_913 26 Posted September 16, 2019 This top part is an update. I have NAVY units that should normally be inside a ship. But 8 out of 10 units that I place wear random sunglasses. I looked up and down for a solution. Most are just O_soldier_F that they inherit from. They all look stupid. I've tried different things like eventhandlers etc from bi. Then I found out CBA has a random facewear on top of that. I don't know if I disabled the CBA or not because one is always working unless both are disabled. Here are some things I tried. CBA_facewearList[] = {}; CBA_facewearList[] = {"", 1}; headgearList[] = {}; facewearList[] = {}; class EventHandlers { init = "(_this select 0) setVariable ['BIS_enableRandomization', false]"; }; This one I tried this but got eventhandler not defined. class EventHandlers: EventHandlers { init = "if (local (_this select 0)) then {[(_this select 0), [], []] call BIS_fnc_unitHeadgear;};"; }; so I did this: I had to create a separate unit, below, named Navy_soldier just to add the eventhandler class because without it, the init said eventhandler was not yet defined. class Navy_Soldier: O_T_Soldier_F { class EventHandlers; }; class CSAT_Navy_Personnel: Navy_Soldier { author="Victim9l3"; _generalMacro="CSAT_Navy_Personnel"; scope=2; side=0; faction="CSAT_Navy"; vehicleClass="CSAT_NAVY_MEN"; editorSubcategory = "EdSubcat_NAVY_Men"; displayName="NAVY Personnel"; model="\A3\Characters_F_Exp\Syndikat\I_C_Soldier_Camo_F.p3d"; uniformClass="CSAT_Navy_maru_Hex_Uniform"; class EventHandlers: EventHandlers { init = "if (local (_this select 0)) then {[(_this select 0), [], []] call BIS_fnc_unitHeadgear;};"; }; backpack=""; hiddenSelections[]= I am out of ideas and this is the last thing I need to do to release the mod. In worst case, I might try reskinning a pair of glasses then giving it a transparent skin. That way the goggles are worn but not seen. Thanks Share this post Link to post Share on other sites
Grovesy57 1 Posted September 29, 2019 Try Replacing your init line with this. init = " (_this select 0) setVariable [""BIS_enableRandomization"",false]; if (local (_this select 0)) then {[(_this select 0), [], []] call BIS_fnc_unitHeadgear;};"; Let me know if that works. Share this post Link to post Share on other sites