• 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.

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: 112
  • 8587.png
    8587.png
    7.4 KB · Views: 140
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