I think its because of a leak but i really dont know. One area of my map, creeps spawn uncontrollably.
Ive been using this same trigger in different maps and always had problems with it. If anyone gets a chance could you look over it and see if it looks ok?
These are my triggers.
Ive been using this same trigger in different maps and always had problems with it. If anyone gets a chance could you look over it and see if it looks ok?
These are my triggers.
Trigger:
- Creep Revival System 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 Integer = (Integer + 1)
- Unit - Set the custom value of (Picked unit) to Integer
- Custom script: set udg_Creep_X[udg_Integer] = GetUnitX(GetEnumUnit())
- Custom script: set udg_Creep_Y[udg_Integer] = GetUnitY(GetEnumUnit())
- Loop - Actions
- Unit Group - Pick every unit in (Units in (Playable map area) owned by Neutral Hostile) and do (Actions)
- Events
Trigger:
- Revive Creeps
- Events
- Unit - A unit Dies
- Conditions
- ((Owner of (Triggering unit)) Equal to Neutral Hostile) and (((Triggering unit) is Summoned) Not equal to True)
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- CreepRespawnTime Greater than 0.00
- Then - Actions
- Wait CreepRespawnTime game-time seconds
- Unit - Create 1 (Random level CreepLevel creep unit-type) for Neutral Hostile at ((Center of (Entire map)) offset by (Creep_X[(Custom value of (Triggering unit))], Creep_Y[(Custom value of (Triggering unit))])) facing (Random angle) degrees
- Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
- Else - Actions
- Wait 30.00 seconds
- Unit - Create 1 (Random level CreepLevel creep unit-type) for Neutral Hostile at ((Center of (Entire map)) offset by (Creep_X[(Custom value of (Triggering unit))], Creep_Y[(Custom value of (Triggering unit))])) facing (Random angle) degrees
- Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events