• 🏆 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!

[Solved] Does moving a point leak?

Status
Not open for further replies.
Level 25
Joined
Sep 26, 2009
Messages
2,379
I made this trigger
  • Moving Point test
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Set Temp_Point[1] = (Center of Test Region <gen>)
      • Special Effect - Create a special effect at Temp_Point[1] using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Set Temp_Point[1] = (Temp_Point[1] offset by 300.00 towards 45.00 degrees)
      • Special Effect - Create a special effect at Temp_Point[1] using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Custom script: call RemoveLocation(udg_Temp_Point[1])
      • Custom script: set udg_Temp_Point[1] = null
and as you can see, I create a point from Temp_Point[1] and save it as new Temp_Point[1] (thus why I named it "moving a point").

The question is: Does the new Temp_Point[1] remove the location of the previous Temp_Point[1] when it replaces that point/information it stores, or does the custom script at the end remove both locations? Or will this leak permanently since I have no way to remove the original Temp_Point[1] now?
 
Status
Not open for further replies.
Top