Another question would be how it chooses these 4 units, randomly or by proximity?
If by proximity, make a unit group that checks for the closest unit, negate a counter from 4 and repeat until 0.
If it's random, well pick use the "pick X random units in range".