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

[Trigger] Leaks

Status
Not open for further replies.
Level 11
Joined
Aug 11, 2009
Messages
594
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