- Joined
- Aug 20, 2004
- Messages
- 65
I have a problem with spawned units in my Aos. After they're first spawned they rush off to fight like they're supposed to. After the two waves meet and fight, the survivors will turn around for some reason, and run back to base. Here are my triggers (I basically copied them from Thehelper.com's DotA template, and removed the memory leaks).
-
Spawn Sentinel
-
Events
- Time - Every 45.00 seconds of game time
- Conditions
-
Actions
- -------- SPAWN NORTH --------
- Set Temp_Point = (Center of TopHumSpawn <gen>)
- If ((Ancient of War 0040 <gen> is alive) Equal to True) then do (Unit - Create 3 Footman for Player 1 (Red) at Temp_Point facing 90.00 degrees) else do (Unit - Create 4 Footman for Player 1 (Red) at Temp_Point facing 90.00 degrees)
- If ((Voodoo Lounge 0110 <gen> is alive) Equal to True) then do (Unit - Create 1 Spell Breaker for Player 1 (Red) at Temp_Point facing 45.00 degrees) else do (Unit - Create 2 Spell Breaker for Player 1 (Red) at Temp_Point facing 45.00 degrees)
- Custom script: call RemoveLocation (udg_Temp_Point)
-
Events
-
Move North Sentinel
-
Events
- Unit - A unit enters TopHumSpawn <gen>
- Unit - A unit enters TopHumanCast <gen>
-
Conditions
- (Owner of (Triggering unit)) Equal to Player 1 (Red)
-
Actions
- Set Temp_Point = (Position of Director 0100 <gen>)
- Unit - Order (Triggering unit) to Attack-Move To Temp_Point
- Custom script: call RemoveLocation (udg_Temp_Point)
-
Events
-
Redirect3
-
Events
- Unit - A unit comes within 500.00 of Director 0100 <gen>
-
Conditions
- ((Owner of (Triggering unit)) Equal to Player 1 (Red)) or (((Owner of (Triggering unit)) Equal to Player 7 (Green)) or ((Owner of (Triggering unit)) Equal to Neutral Hostile))
-
Actions
- Set Temp_Point = (Position of Arcane Vault 0000 <gen>)
- Set Temp_Point2 = (Position of Director 0118 <gen>)
- If (((Triggering unit) belongs to an enemy of Player 1 (Red)) Equal to True) then do (Unit - Order (Triggering unit) to Attack-Move To Temp_Point) else do (Unit - Order (Triggering unit) to Attack-Move To Temp_Point2)
- Custom script: call RemoveLocation (udg_Temp_Point)
- Custom script: call RemoveLocation (udg_Temp_Point2)
-
Events