- Joined
- Mar 12, 2009
- Messages
- 64
Ive used this trigger in other maps and it has no problem working. on this new map the creeps are not spawning at their starting points. they just kept spawning some where else.
-
Creep Initialization
-
Events
- Map initialization
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in (Playable map area) owned by Neutral Hostile) and do (Actions)
-
Loop - Actions
- Set Creep_Integer = (Creep_Integer + 1)
- Unit - Set the custom value of (Picked unit) to Creep_Integer
- Custom script: set udg_Creep_X[udg_Creep_Integer] = GetUnitX(GetEnumUnit())
- Custom script: set udg_Creep_Y[udg_Creep_Integer] = GetUnitY(GetEnumUnit())
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in (Playable map area) owned by Neutral Hostile) and do (Actions)
-
Events
-
Creep Respawn
-
Events
- Unit - A unit Dies
-
Conditions
- ((Owner of (Triggering unit)) Equal to Neutral Hostile) and (((Triggering unit) is Summoned) Not equal to True)
-
Actions
- Wait 45.00 seconds
- Set Temp_Point[1] = ((Center of (Playable map area)) offset by (0.00, 0.00))
- Set Temp_Point[2] = (Temp_Point[1] offset by (Creep_X[(Custom value of (Triggering unit))], Creep_Y[(Custom value of (Triggering unit))]))
- Unit - Create 1 (Unit-type of (Triggering unit)) for Neutral Hostile at Temp_Point[2] facing Default building facing degrees
- Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
- Custom script: call RemoveLocation(udg_Temp_Point[1])
- Custom script: call RemoveLocation(udg_Temp_Point[2])
-
Events