• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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