- Joined
- Apr 28, 2012
- Messages
- 166
I want to ask if anybody knows how to add a unit in an unit group with array and with (for each integer A) Like this:
Any helps will be appreciated.
-
Actions
-
For each (Integer A) from 1 to SnowC, do (Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units within (TEstS[(Integer A)] - 150.00) of TestP[(Integer A)]) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) is A structure) Not equal to True
- ((Picked unit) is alive) Equal to True
- (Unit-type of (Picked unit)) Not equal to Snow Ball
- ((Picked unit) is in TestGH[(Integer A)]) Not equal to True
- (Picked unit) Not equal to TEstU2[(Integer A)]
- ((Picked unit) belongs to an enemy of (Owner of TestU[(Integer A)])) Equal to True
-
Then - Actions
- Unit Group - Add (Picked unit) to TestGH[(Integer A)]
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units within (TEstS[(Integer A)] - 150.00) of TestP[(Integer A)]) and do (Actions)
-
Loop - Actions
-
For each (Integer A) from 1 to SnowC, do (Actions)
Any helps will be appreciated.
Last edited: