Joe98 90 Posted April 17, 2016 I hate those bug like helmets used by Opforce. So I give them other helmets. The first soldier is named red1 so my commands are: removeHeadgear red1; red1 addHeadgear "H_HelmetB_desert"; Of course there are more than one enemy. There are 10 enemy. They are named: red1 through red10. Instead of writing 20 commands, is there a clever way to do this using 2 albeit longer, commands? . Share this post Link to post Share on other sites
spyderblack723 407 Posted April 17, 2016 { _unit = _x; removeHeadgear _unit; _unit addHeadgear "H_HelmetB_desert"; } forEach [red1,red2,red3,red4,red5,red6,red7,red8,red9,red10]; Read https://community.bistudio.com/wiki/forEachfor more info on how to use the forEach command 1 Share this post Link to post Share on other sites
Grumpy Old Man 3540 Posted April 17, 2016 To go one step further you could use this: { removeHeadgear _x; _x addHeadgear "H_HelmetB_desert"; } forEach allUnits select {side _x isEqualTo east}; so you don't even have to type in each enemies varName. Pretty comfortable if you decide to add more units. Cheers 2 Share this post Link to post Share on other sites