IsUnitInRange what is it precicely

Level 11
Joined
Jul 28, 2024
Messages
340
IsUnitInRange is it difference from unit center to unit center or is it distance from one unit collision circle edge to another? Or what is it?

for example this func gives me 158

function DistanceBetweenUnits takes unit u, unit v returns real
local real dx = GetUnitX(u) - GetUnitX(v)
local real dy = GetUnitY(u) - GetUnitY(v)
return SquareRoot(dx * dx + dy * dy)
endfunction

and is unit is range giving is me yes for 120 for some reason
 
Back
Top