- Joined
- Mar 22, 2012
- Messages
- 1,549
Does this leaks: Create paathing blockers at point ofset x= for excample 2421 and y=5542 so nothing like x of unit and y of unit.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Unit - Create 1 Footman for Player 1 (Red) at ((Center of (Playable map area)) offset by (0.00, 0.00)) facing Default building facing degrees
function OffsetLocation takes location loc, real dx, real dy returns location
return Location(GetLocationX(loc) + dx, GetLocationY(loc) + dy)
endfunction
Custom script: call CreateDestructable(objectid, x, y, facing, scale, variation)
creating something will always leak but not the position itself using Xy coordinates...
you already answered the non-sense statement >>> "Technically a leak it's when there is some memory hold"...all objects in WC3 creates memory allocations, intended or not...Sorry but what you are saying doesn't make sense.
--->Your quote is not long enough, it's out of context without "when it's no more necessary".
all objects in WC3 creates memory allocations, intended or not
globals
location point=Location(0,0)
endglobals
call MoveLocation(point,newX,newY)group if it never retains contents.
