• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

What can i compare the trigger editor "range" to

Status
Not open for further replies.
I think he's talking about the distance scale.

You can display the grid in the terrain editor (hotkey G) : there is the largest yellow grid which is 512 large, then the medium white grid which is 128 large and the smallest grey grid which is 32 large.

Most of time, destructables and doodads are usually 64x64 sized minimum but you can create custom paths 32x32, regions are 32x32 sized minimum as well and units has a minimum collision radius of 8.
 
I think he's talking about the distance scale.

You can display the grid in the terrain editor (hotkey G) : there is the largest yellow grid which is 512 large, then the medium white grid which is 128 large and the smallest grey grid which is 32 large.

Most of time, destructables and doodads are usually 64x64 sized minimum but you can create custom paths 32x32, regions are 32x32 sized minimum as well and units has a minimum collision radius of 8.

Ok :P ty
I was referring to the "unit within range" event so i dont know if thats right or not.
EDIT
Not right for me anyway, i used a "unit within range" event with one of those distances and it just triggers it wherever my units are at.
 
Tirl is right. To check to distance between two Point(x,y)'s, use the distance formula:

JASS:
function GetDistance takes real x1, real x2, real y1, real y2 returns real
    return SquareRoot(((y2-y1)*(y2-y1))+((x2-x1)*(x2-x1)))
endfunction
 
JASS:
function GetDistanceBetweenCoordinatesNoRoot takes real x1, real x2, real y1, real y2 returns real
    return ((y2-y1)*(y2-y1))+((x2-x1)*(x2-x1))
endfunction
Would be better for performance because SquareRoot is very slow :/ Just square the compared real then and it will do the same.
 
Status
Not open for further replies.
Back
Top