• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Does moving a point leak?

Status
Not open for further replies.
Level 28
Joined
Sep 26, 2009
Messages
2,520
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