So I'v stolen my Creep-Respawn from a tutorial on this site and it works fine.
Then I tought sitting Creeps arn't that cool and I made them patrol.
So I used a Trigger that sends every 5 seconds all Units from one Location to patrol so the other Location. That gets every Unit patroling even after Respawn and is (a first glance) realy time-efficient.
And would look like this:
After fixing this I get:
Is my understanding of Leaks correct?
Does anyone have a better idea how to make this work?
Then I tought sitting Creeps arn't that cool and I made them patrol.
So I used a Trigger that sends every 5 seconds all Units from one Location to patrol so the other Location. That gets every Unit patroling even after Respawn and is (a first glance) realy time-efficient.
And would look like this:
-
Event
-
Time - Every 5.00 seconds of game time
-
-
Contitions
-
Actions
-
UnitGroup - Pick every unit in (Units in zPatrolG11 <gen>) and do (Unit - Order (Picked unit) to patrol to (Center of zPatrolG18 <gen>))
-
After fixing this I get:
-
Event
-
Time - Every 5.00 seconds of game time
-
-
Contitions
-
Actions
-
Set TempLoc = (Center of zPatrolG11 <gen>)
-
Set TempUnitGroup = (Units in zPatrolG12 <gen> owned by Player 12 (Brown))
-
UnitGroup - Pick every unit in TempUnitGroup and do (Unit - order (Picked unit) to patrol to TempLoc)
-
Custom script: call RemoveLocation(udg_TempLoc)
-
Custom script: call DestroyGroup(udg_TempUnitGroup)
-
Is my understanding of Leaks correct?
Does anyone have a better idea how to make this work?