Point Check

Demonwrath

Happy[ExtremelyOverCommercializ ed]HolidaysEveryon
Reaction score
47
How do I with triggers check if to points are equal to each other :\

I can't find any conditions that seem to work
 

w00t22

CSS L4D DoD? Steam ID = w00t22
Reaction score
43
well in jass you can use
JASS:

local real x = GetLocX(p)
local real x2 = GetLocX(p)
local real y = GetLocY(p2)
local real y2 = GetLocY(p2)

And "p" and "p2" are locations
I think thats the command, then compare x and y to x2 y2 using real comparsion
 

Demonwrath

Happy[ExtremelyOverCommercializ ed]HolidaysEveryon
Reaction score
47
I need it in GUI

For a spell I am making I need to make it so if the hero moves the spell stops, I know how to do everything but check if PointA = PointB
 

Trollvottel

never aging title
Reaction score
262
set loc1 = bla
set loc2 = blabla


then u can use distance between points.. and if the distance is 0 you have two equal points ;)
 

Romek

Super Moderator
Reaction score
963

Sevion

The DIY Ninja
Reaction score
413
Or you could use a trigger that fires when a unit is issued an order targeting a point, then if he's casting do blah blah w/e you need.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top