Comrades in Arms Discussion Board

Full Version: How to get rid of random headgear
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I noticed that after carefully planning the gear for my fighters in VR arsenal, the headgear gets randomized when I preview the mission in the Editor. It's crucial for my mission that the fighters have cover over their faces.

I'm using the fighter's init-field to set the gear, like this:

Code:
removeAllWeapons this;
removeAllItems this;
removeAllAssignedItems this;
removeUniform this;
removeVest this;
removeBackpack this;
removeHeadgear this;
removeGoggles this;

this forceAddUniform "U_BG_Guerilla3_1";
this addHeadgear "H_Booniehat_khk";
this addGoggles "G_Bandanna_oli";

But regardless of the headgear I assign, the final look is always randomized. Has anyone else encountered the same problem while making missions and perhaps even a solution for it?
I put this in the init line of the units, should help with the random headgears

Code:
this setVariable ["BIS_enableRandomization", false];
Thanks guys! Phantom's solution works like a charm! I'll try the scripts for loadouts, too. That should definitely put some speed to the slow mission making pipeline.