So, I'm nearing the completion of a beta version of much current project, but have a bit of an issue when it comes to attack waves. My map is comprised of four teams; the Colonists, Infested, Infested Hordes, and Zerg Swarm. Every 300 seconds a trigger runs to spawn a number of Infested Terrans (Civilians and Marines) for the Infested Hordes faction. Is there a way to have all the spawned units be placed in a unit group (or alternatively a command issued to the entire team) to attack a specific point?
The basics of it is simple: at 300 seconds, 600 seconds, ect, spawn X Infested Colonist and X Infested Marine, which then attack-move towards 'Start Location Player'.
Semi-related, is it then possible to add all remaining units in the 'Infested' team to the 'Infested Hordes' team and run the same attack-order later in the map?
The way I do it in wave-based attack maps is I make a trigger where the event is "Any unit enters Entire Map" and then in the conditions check to see if the entering unit is from the owner of the enemies that I'm making attack. Then issue the order.
If you're looking to add all units of the player who owns the Infested to a unit group (including remainders) at every 300 seconds (or whatever interval you want to use) you could add a "Unit Group-Pick each unit in (Any units in (Entire Map) owned by player [insert the player number of the player who owns the enemies] Excluded: Missile, Dead Hidden, with at most Any Amount) and do (Actions)" action either at the beginning or the end of your trigger that creates the enemies. and in the "Actions" of that Pick Units action put a "Add (Picked Unit) to Unit Group" action.
It would look like this:
-Timer-Every 300 seconds of Game Time
-Unit Group-Pick each unit in (Any units in (Entire map) owned by player [enemy player number] matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
---Add (Picked Unit) to [enemy unit group]
As for the "Attack a specific point" trigger, I usually just do this:
-Unit-Any Unit Enters (Entire Map)
-(Owner of (Triggering Unit)) == [infested hordes player number]
-Unit-Order Unit to ( Attack targeting [Start Location Player]) (Replace Existing Orders)