• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

do this kind of trigger leak?

Status
Not open for further replies.
Level 6
Joined
Jul 21, 2011
Messages
139
a unit enters region Z

move triggering unit instantly to random point in region X


as you can see its just a simple teleport/move unit from one region to another, so do i need to use variables or can i leave them that way?
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Yes it leaks a point.
  • Melee Initialization
    • Events
      • Unit - A unit enters Region Z <gen>
    • Conditions
    • Actions
      • Set TempLoc = (Center of Region X <gen>)
      • Unit - Move (Triggering unit) instantly to TempLoc
      • Custom script: call RemoveLocation(udg_TempLoc)
 
Level 6
Joined
Jul 21, 2011
Messages
139
dam...this means ill have to go fix some stuff, thx

btw, i read in the sticky that pan camera trigger leaks and should never be used, is that correct?
 
Status
Not open for further replies.
Top