I'm working on a TD where there are 8 people in a circle and the units that spawn are supposed to go to their point from the spawn point then all the way around the circle through the other peoples towers then back to him and then to the center. I thought this code would work but it's not :/ can someone help me?
-
TL continue moving
-
Events
- Unit - A unit enters TLGoTo <gen>
-
Conditions
- (Owner of (Entering unit)) Equal to Player 12 (Brown)
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Custom value of (Entering unit)) Equal to 8
-
Then - Actions
- Set loc = Score <gen>
- Unit - Order (Entering unit) to Move To (Center of loc)
- Custom script: call RemoveRect( udg_loc)
-
Else - Actions
- Unit - Set the custom value of (Entering unit) to ((Custom value of (Entering unit)) + 1)
- Set loc = TRGoTo <gen>
- Unit - Order (Entering unit) to Move To (Center of loc)
- Custom script: call RemoveRect( udg_loc)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events