- Joined
- Mar 3, 2006
- Messages
- 1,564
Of course in TD maps we use a lot of locations. So to solve the leak problem do I have to create a point varriable and set it to the next region centre point and destroy it once the unit is going to that region (or point)
OR
Do I set the variable to the location at initialization (or setup) and always refer to that variable without destroying it each time ?
Example:
OR
Do I set the variable to the location at initialization (or setup) and always refer to that variable without destroying it each time ?
Example:
-
Initial Moving EA
-

Events
-


Unit - A unit enters SpawnEastAbove <gen>
-
-

Conditions
-


(Owner of (Entering unit)) Equal to BurningLegion
-


((Entering unit) is A Hero) Equal to False
-
-

Actions
-


Set AL_PointSingle = (Center of MoveEastAbove01 <gen>)
-


Unit - Order (Entering unit) to Move To AL_PointSingle
-


Custom script: call RemoveLocation(udg_AL_PointSingle)
-
-
-
Region Setup
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


Set AL_PointSingle = (Center of MoveEastHero <gen>)
-
-
-
Initial Moving EA Copy
-

Events
-


Unit - A unit enters SpawnEastAbove <gen>
-
-

Conditions
-


(Owner of (Entering unit)) Equal to BurningLegion
-


((Entering unit) is A Hero) Equal to False
-
-

Actions
-


Unit - Order (Entering unit) to Move To AL_PointSingle
-
-










