Gui custom script leakage stopping

M

MoonRazer

Guest
wow that title is weird...

ok i am seeing alot of custom script put into GUI and it mostly contains stuff like set variable to null or remove location. now i am trying to convert to jass one step at a time. so i am putting custom script into my triggers more often. when would i want to put in the "destroy variable value thing". just curious guys :D
 

uberfoop

~=Admiral Stukov=~
Reaction score
177
'Destroy variable value'?

If you mean like stopping the standard leaks that even occur with globals such as point leaks and whatnot, you use those when your done using a certain variable value.

If you mean nulling a local thats generally done at the end of a function.
 
D

dadads

Guest
when would i want to put in the "destroy variable value thing
When you have finished using it.

So normally, when you are not using handle variables anymore you would expect for your computer to destroy that variable (since you are not using it anymore). But the reality is, you have to tell the computer to destroy that handle variable (it wouldn't do it automatically). That's basically the use of "destroy variable value thing"

btw, handle variables means variables which are not an integer, real, boolean, or string
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top