- Joined
- Feb 21, 2009
- Messages
- 316
I have a DotA-like map and I want to spawn 3 lanes of creeps but for no reason, when the creeps reach the requested dummy unit (top/bottom lane which are "L" lanes, and there has to be a dummy unit at the corner to redirect the units to the enemy base), they turn around and walk back to base o.o.
I looked over the triggers over and over again and couldn't find anything wrong. Here's the code :
Fortress is the enemy end-game building.
Human Barracks Top is the region where the units spawn.
this is only for 1 lane but i have problems on both lanes of each team.
I looked over the triggers over and over again and couldn't find anything wrong. Here's the code :
-
Events
- Time - Every 30 seconds of the game.
-
Conditions
- (Barracks is alive) equal to true.
-
Actions
- Unit - Create 3 Footman for Player 1(Red) at (Center of Human Barracks Top <gen>) facing Default building facing degrees.
- Unit - Create 1 Priest for Player 1(Red) at (Center of Human Barracks Top <gen>) facing Default building facing degrees.
- Unit Group - Order (Units in Human Barracks Top<gen>) to Attack-Move to (Position of Top Lane Point 0038<gen>)
-
Events
- Unit - A unit comes within 300 of Top Lane Point 0038<gen>.
-
Conditions
- (Owner of Triggered Unit) equal to Player 1(Red).
-
Actions
- If ((Owner of (Triggering unit)) Equal to Player 1 (Red)) then do (Unit - Order (Triggering unit) to Attack-Move To (Position of Fortress 0021 <gen>)) else do (Do nothing)
Fortress is the enemy end-game building.
Human Barracks Top is the region where the units spawn.
this is only for 1 lane but i have problems on both lanes of each team.