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

Spell leaks?

Status
Not open for further replies.
Level 6
Joined
Jun 23, 2005
Messages
195
I was wondering what things cause leaks in spells. I know some variables do atleast, it would be nice for someone to explain most common things that cause leaks and how to fix them. I know daelin has made tutorial for leaks but they are so freaking long that I dont want to spend a year reading it....
 
Level 14
Joined
Jan 15, 2007
Messages
349
Well you should read the tutorial from Dealin or other guys for example from wc3campaigns. But whatever I give you a short introduction about how to remove leaks. All stuff you create ,which are handles, you should remove if you dont need it. Mostly you use in spells handles like "location" or "group". To remove/destroy those handles you must just enter the right function. For example when you want to remove a location enter: "call RemoveLocation(<location>)". JassCraft will help you alot when you dont know those function names. Because there you can enter a search word like destroy or remove and then you must just look where is the right function which you need to remove or to destroy a handle like a location or a group!

Link to JassCraft!

I hope I helped you!
 
Level 6
Joined
Jun 23, 2005
Messages
195
Well you should read the tutorial from Dealin or other guys for example from wc3campaigns. But whatever I give you a short introduction about how to remove leaks. All stuff you create ,which are handles, you should remove if you dont need it. Mostly you use in spells handles like "location" or "group". To remove/destroy those handles you must just enter the right function. For example when you want to remove a location enter: "call RemoveLocation(<location>)". JassCraft will help you alot when you dont know those function names. Because there you can enter a search word like destroy or remove and then you must just look where is the right function which you need to remove or to destroy a handle like a location or a group!

Link to JassCraft!

I hope I helped you!

So if i add units to unit group i should write something in the end of the trigger to prevent leaks?
 
Status
Not open for further replies.
Top