• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

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