Hi,
so i followes this turtorial and I suddenly realized it seems this procedure is not leakless.
It is a Creep Respawn System. It has 3 triggers, shown below.
Trigger nr 2 seems to be the one leaking, since it does not remove the past point, while trigger nr 3 creates yet another one for the newly spawned one.
How do I custom script this? Like...:
Can the computer read (Custom Value of (Dying unit))? ^^
Trigger 1:
so i followes this turtorial and I suddenly realized it seems this procedure is not leakless.
It is a Creep Respawn System. It has 3 triggers, shown below.
Trigger nr 2 seems to be the one leaking, since it does not remove the past point, while trigger nr 3 creates yet another one for the newly spawned one.
How do I custom script this? Like...:
-
Custom script: call RemoveLocation (udg_Creep_Respawn_Point[(Custom Value of (Dying unit))]
Can the computer read (Custom Value of (Dying unit))? ^^
Trigger 1:
-
Creep Respawn Point Saver
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


Set Creep_Respawn_Timer = 70.00
-


Custom script: set bj_wantDestroyGroup = true
-


Unit Group - Pick every unit in (Units in (Entire map) owned by Player 12 (Brown)) and do (Actions)
-



Loop - Actions
-




Set Creep_Respawn_Integer = (Creep_Respawn_Integer + 1)
-




Unit - Set the custom value of (Picked unit) to Creep_Respawn_Integer
-




Set Creep_Respawn_Point[Creep_Respawn_Integer] = (Position of (Picked unit))
-
-
-
-
-
Creep Respawn Timer
-

Events
-


Unit - A unit Dies
-
-

Conditions
-


(Owner of (Dying unit)) Equal to Player 12 (Brown)
-


(Custom value of (Dying unit)) Greater than 0
-
-

Actions
-


Wait Creep_Respawn_Timer seconds
-


Unit - Create 1 (Unit-type of (Dying unit)) for Player 12 (Brown) at Creep_Respawn_Point[(Custom value of (Dying unit))] facing (Random real number between 0.00 and 360.00) degrees
-


Unit - Set the custom value of (Last created unit) to (Custom value of (Dying unit))
-
-
-
Creep Respawn
-

Events
-


Unit - A unit enters (Playable map area)
-
-

Conditions
-


(Owner of (Entering unit)) Equal to Neutral Hostile
-
-

Actions
-


Set Creep_Respawn_Integer = (Creep_Respawn_Integer + 1)
-


Unit - Set the custom value of (Entering unit) to Creep_Respawn_Integer
-


Set Creep_Respawn_Point[Creep_Respawn_Integer] = (Position of (Entering unit))
-
-





