twiddlingthumbs 10 Posted February 6, 2014 _people = [bob, John]; {removeUniform _x} forEach units _people; {_x addUniform "U_mas_afr_O_rebel3"} forEach units _people; //I can not get this to work, can someone please help and tell me what I am doing wrong. I have named the units appropriately in the editor Bob and John. Share this post Link to post Share on other sites
KC Grimes 79 Posted February 6, 2014 Try adding quotations "" around Bob and Johns name in the array. If the uniform is removed and the new one isn't added, check the classname. Not sure if it matters when using commands, but I do know that soldiers cannot put on other faction's uniforms via the ammobox. Never tried with the command though. Share this post Link to post Share on other sites
giallustio 770 Posted February 6, 2014 _people = [bob, John]; {removeUniform _x} forEach _people; {_x addUniform "U_mas_afr_O_rebel3"} forEach _people; Share this post Link to post Share on other sites
twiddlingthumbs 10 Posted February 6, 2014 It worked, Thanks Giallustio! :) Share this post Link to post Share on other sites
fight9 14 Posted February 6, 2014 You could also condense it to one foreach loop _people = [bob, John]; { removeUniform _x; _x addUniform "U_mas_afr_O_rebel3"; } forEach _people; Less is always better. Instead of 4 loops, this only runs 2. Share this post Link to post Share on other sites