Simple Leak Clear

Status
Not open for further replies.
Level 7
Joined
May 30, 2018
Messages
290
I made this simple trigger

  • Pick Footman
    • Events
      • Unit - A unit enters Region 004 <gen>
    • Conditions
    • Actions
      • Unit - Remove (Triggering unit) from the game
      • Unit - Create 1 Footman for (Owner of (Triggering unit)) at (Random point in Region 000 <gen>) facing Default building facing degrees
      • Camera - Pan camera for (Owner of (Triggering unit)) to (Position of (Last created unit)) over 0.00 seconds
My question now is: How do I get rid of the location leak? Destroying the region leads to me not being able to use this region repeatedly (I Hope you understand what I mean) --> If I simply do destroy region, it is gone for later uses, which I want to avoid.
 
I made this simple trigger

  • Pick Footman
    • Events
      • Unit - A unit enters Region 004 <gen>
    • Conditions
    • Actions
      • Unit - Remove (Triggering unit) from the game
      • Unit - Create 1 Footman for (Owner of (Triggering unit)) at (Random point in Region 000 <gen>) facing Default building facing degrees
      • Camera - Pan camera for (Owner of (Triggering unit)) to (Position of (Last created unit)) over 0.00 seconds
My question now is: How do I get rid of the location leak? Destroying the region leads to me not being able to use this region repeatedly (I Hope you understand what I mean) --> If I simply do destroy region, it is gone for later uses, which I want to avoid.
The point in the region is not the same thing as the region (they are not even the same kind of handle) and so you can remove the point without removing the region.
however for removing the point handle so you will need to read the tutorial above.
 
Status
Not open for further replies.
Back
Top