Comrades in Arms Discussion Board
How to get rid of random headgear - Printable Version

+- Comrades in Arms Discussion Board (http://forum.ciahome.net)
+-- Forum: Comrades in Arms Life (http://forum.ciahome.net/forumdisplay.php?fid=3)
+--- Forum: Mission Making (http://forum.ciahome.net/forumdisplay.php?fid=8)
+--- Thread: How to get rid of random headgear (/showthread.php?tid=2743)



How to get rid of random headgear - Fuiba - 09-10-2014

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?


Re: How to get rid of random headgear - Phantom - 09-10-2014

I put this in the init line of the units, should help with the random headgears

Code:
this setVariable ["BIS_enableRandomization", false];



Re: How to get rid of random headgear - Outlawz7 - 09-10-2014

Recommend you use a script for loadouts in A3

http://ciahome.net/forum/index.php?topic=2883.msg25700#msg25700

http://ciahome.net/forum/index.php?topic=2979.msg25712#msg25712


Re: How to get rid of random headgear - Fuiba - 09-13-2014

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.