Warcraft 3 editor help

Hi, I am trying to spawn 4 units at a time and make them all attack move into an area, but they keep moving back. Every solution I have found for this has been resolved for single units. I was wondering if I could do this for multiple units. Also I don’t want to set their aggro radius to the max and return time to the max as I want some units on the same team to bounce back to their locations after spawning.

Also, I am not sure how to post pictures on here, so I will copy paste exactly what I have for the trigger. Thanks!

Actions
Unit - Create 4 Swordsman for Neutral Hostile at (Center of Human Assault Spawn ) facing Default building facing degrees
Unit Group - Pick every unit in (Last created unit group) and do (AI - Ignore (Picked unit)'s guard position)
Unit Group - Pick every unit in (Last created unit group) and do (Unit Group - Order (Last created unit group) to Attack-Move To (Center of Human Assault Rally ))

Have you tried assigning the units to an actual unit group. I’m not sure the exact trigger, but you could do wait for condition trigger for (center of Human Assault Rally) to contain the units you created. As for bouncing back, that would require you to trigger the unit to do what you want. Pick random unit from unit group and do action type function I believe. However, if you are using a constant unit creation trigger, this will pick them as well unless you use a never ending array for your unit type on an arithmetic style assignment which will require you to use two triggers and two variables.

Creating a unit group instead of relying on the last picked unit group is the best way to do this, as if you have a continued unit production trigger, unless you assign them to an actual unit group and call that unit group specifically this will only ever effect the last units created.

Neutral Hostile is player group, not a unit group. Unit Groups are assigned through variable functions and though this prevents a player group from being effected by your trigger, it is a lot easier to assign the units to a unit group and then just issue the orders to the unit group. (Hope this makes sense, its been awhile since I’ve used the editor since they don’t have full campaign support yet.)