• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

Do these two triggers leak?

Status
Not open for further replies.
Level 3
Joined
Apr 6, 2015
Messages
44
So i'm pretty sure I got all my leaks covered in my triggered, but after the 20th cast of my spell, i start noticing some lag, and the only places where I believe there can be leaks are two areas where I don't have much knowledge of

First, this is a pick every unit within ### of point
attachment.php


I eventually remove the point later as I still need it, so I only crop out the parts I dont have much knowledge of, so does the units within 800 range of snakesandscorpspoint[4] leak? like making 800 different points? That really got me

Second
attachment.php


This is a pick every unit in a unit group and create a point at their position

I'm not too sure if all the points get deleted , or anything at all about this, all i know is that it makes my trigger work, but i'm not sure about the leaks

Looked all over tutorials and didn't see anyone mention this, so I don't know if its not a leak so it wasn't mentioned or they just didn't cover it in the basics.
 

Attachments

  • 123.png
    123.png
    21 KB · Views: 108
  • 8587.png
    8587.png
    7.4 KB · Views: 136
Level 21
Joined
Aug 13, 2011
Messages
739
The first trigger leaks. You have to set a temporary group that you can destroy before picking units.
  • Actions
    • Set TempGroup = (Units within 800.00 of SnakesandScorpsPoint[4] matching (all of your matching conditions here)
    • Unit Group - Pick every unit in TempGroup and do (Actions)
      • Loop - Actions
        • Unit Group - Add (Picked unit) to SnakesAndScorpUnitGroup[1]
        • Unit - Pause (Picked unit)
    • Custom script: call DestroyGroup (udg_TempGroup)
 
Status
Not open for further replies.
Top