Apologies for cluttering the forums, but these are separate questions, and I'd like to be sure to get answers to each of them.
I am hunting for a leak in my map. I decided to reread the tutorial here at Hive and saw this which I had previously not paid attention to:
"When using local handle variables in JASS, they cause a small leak. A handle is everything except real, string, integer, and boolean. If I'm not mistaken, this only occurs if the handle is ever destroyed or removed from the game. This means that if you are certain a handle will never cease to exist, it's safe not to null the variable. Althought players are handles, they should never need to be nulled."
EDIT: Also, the tutorial seems to think this only applies to custom script (JASS). If I use the native command:
Again, apologies for all the posts.
I am hunting for a leak in my map. I decided to reread the tutorial here at Hive and saw this which I had previously not paid attention to:
"When using local handle variables in JASS, they cause a small leak. A handle is everything except real, string, integer, and boolean. If I'm not mistaken, this only occurs if the handle is ever destroyed or removed from the game. This means that if you are certain a handle will never cease to exist, it's safe not to null the variable. Althought players are handles, they should never need to be nulled."
-
local unit u = GetTriggerUnit()
-
call SetUnitFacing(u, 270)
-
call SetUnitFlyHeight(u, 300, 50)
-
set u = null
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of u) Equal to Blastboat
-
-
Then - Actions
-
Custom script: call SetUnitX (udg_blastBoatTurret[udg_cv], udg_x)
-
Custom script: call SetUnitY (udg_blastBoatTurret[udg_cv], udg_y)
-
Custom script: call SetUnitFlyHeight(udg_blastBoatTurret[udg_cv], GetUnitFlyHeight(udg_u) + 30, 0)
-
Unit - Make blastBoatTurret[cv] face (FlierFacing[cv] + ((Real(blastBoatTurretFacing[cv])) x 90.00)) over 0.00 seconds
-
-
Else - Actions
-
EDIT: Also, the tutorial seems to think this only applies to custom script (JASS). If I use the native command:
-
Animation - Change blastBoatTurret[cv] flying height to ((Current flying height of u) + 30.00) at 0.00
Again, apologies for all the posts.