Jump to content
Sign in to follow this  
Joe98

A clever way to add helmets to 10 men using one command?

Recommended Posts

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

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

  • Like 2

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×