So there are two ways of filtering which units you want to be affected within a unit group.
Which is faster or are they both the same?
The second one is much nicer to work with and edit. Unless it is much slower I think it is ideal?
-
Set TempUnitGroup = (Units within 800.00 of TempPoint matching ((((Matching unit) belongs to an enemy of (Owner of (Picked unit))) Equal to True) and ((((Owner of (Matching unit)) Not equal to Player 9 (Gray)) and ((Owner of (Matching unit)) Not equal to Neutral Passive)) and ((
-
Unit Group - Pick every unit in TempUnitGroup and do (Actions)
-
Loop - Actions
-
Your Actions
-
-
-
Set TempUnitGroup = (Units within 800.00 of TempPoint)
-
Unit Group - Pick every unit in TempUnitGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) belongs to an enemy of (Owner of (Picked unit))) Equal to True
-
(Owner of (Matching unit)) Not equal to Player 9 (Gray)
-
(Owner of (Matching unit)) Not equal to Neutral Passive
-
(Unit-type of (Picked unit)) Not equal to Bunker
-
(Unit-type of (Picked unit)) Not equal to Firebat
-
-
Then - Actions
-
Your Actions
-
-
Else - Actions
-
-
-
The second one is much nicer to work with and edit. Unless it is much slower I think it is ideal?