In StarCraft 2, is there a way to automatically set groups on units about to be produced?

Solution 1:

I don't think there is a way to do exactly what you describe. If I am wrong, I would love to know about it!

The second best thing I can find is to set a waypoint to follow a unit in your main attack group. To do this, select your production buildings, find a unit that isn't likely to die anytime soon, and right click that unit. New units being produced will follow your main group, and will attack nearby enemies and such.

However, they still won't be in the actual control group, so you can't easily use their spells and whatnot. In order to set that up, the easiest way I've found is to select the units as they're walking toward your group (it's good to listen for "construction finished" sound bites and hit Space) and then press Shift+3 to include them in the original group.

Two things to watch out for:

  1. Units heading toward waypoints are using the "Move" command and will not attack stuff en route.
  2. If the unit you are following is destroyed, the waypoint will end up wherever it was when it was destroyed. If this is right at the front of the enemy base, that's bad.

Solution 2:

It's not possible to do such auto-assign. But there some helpers to do it easier:

  • zerg can add larva cocoons to groups (so you select larva and type of unit and press shift+#)
  • protoss can add warping units to group before warping is completed
  • constantly check point where your units rallied to (minimap)

I advise to not rally units to units because your opponent will be able to shut down your reinforcements really easily. Except for special cases of course - like you have a map control / staying on base / rally an observer / playing with AI / ...
Otherwise - it's better to take a step back, combine your forces and continue to move on.