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

[Trigger] Leaks

Status
Not open for further replies.
Level 11
Joined
Aug 11, 2009
Messages
605
Hi, was just wondering a little about leaks. I have a trigger which creates a unit every 7 sec at "position of unit x". Unit x is a building. Will this leak? Should I make a variable at the buildings poistion then create the units at that variable and then remove the location?

Thanks for any help on this :)
 
Level 13
Joined
Sep 13, 2010
Messages
550
Everything that you can remove or destroy will leak including units, locations, rects, special effects so on. Most of them can be deleted through GUI but the rest must be deleted with custon scripts. To prevent Group leaks put this code before Pick every unit funtions: set bj_wantDestroyGroup = true. For others save them into variables( units , points ) and remove/destroy them after use.this maybe useful for you
 
Status
Not open for further replies.
Top