- Joined
- Nov 28, 2008
- Messages
- 704
Hi, Ive been reading the tutorials on leaks, and I never did find a speicif way or answer on how to remove a local unit or player variable, or anything like that.
Lets say I do
insidie of a trigger. At the end, is there a thing like RemoveLocation() for Units or Players? Obviously the RemoveUnit() doesnt work, because that will remove the unit it refers to.
Should I just set them to null? Like
Can I do that for other things as well? Do you HAVE to do
? Can you just do
?
Sorry if this is actually answered in the tutorials, I found a list with all the commands to destroy handles, but I couldnt find anything to destroy a player or unit local variable.
Thanks for any help.
Lets say I do
JASS:
local unit TempUnit
local player TempPlayer
insidie of a trigger. At the end, is there a thing like RemoveLocation() for Units or Players? Obviously the RemoveUnit() doesnt work, because that will remove the unit it refers to.
Should I just set them to null? Like
JASS:
set TempUnit = null
Can I do that for other things as well? Do you HAVE to do
JASS:
call RemoveLocation(TempPoint)
? Can you just do
JASS:
set TempPoint = null
?
Sorry if this is actually answered in the tutorials, I found a list with all the commands to destroy handles, but I couldnt find anything to destroy a player or unit local variable.
Thanks for any help.