Distance between two units?

Anderzzon

Active Member
Reaction score
4
Making a spell where I need a trigger to detect when a unit dies within an area around a dummy unit. The thing is that from what I understand using auras isn't working since a trigger can't detect if a dying unit has a specific buff or not. So now I'm wondering how to set the distance thingie? Can't find it.

/Anderzzon
 

Moridin

Snow Leopard
Reaction score
144
Firstly, distance is a real value, so if you're using integers you need:

Conversion - Integer to Real

...as for the condition itself, it's under Math:

Math - Distance between points
 

mapguy

New Member
Reaction score
46
If you have a damage detection system you CAN USE AURAS!

You just have to detect if the damage will or not kill the unit, if it kills, then, you run the trigger.
 

Moridin

Snow Leopard
Reaction score
144
Here, Have a look at this: :)

distancebetweenpoints.jpg
 

mapguy

New Member
Reaction score
46
If you want to pick units in RANGE use his idea.
If you want to pick units with the AURA BUFF use my idea. You call.
 
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