Im wondering if anyone knows a way to measure the distance between 2 units.
Ive been playing with the map editor and the only place where I found any mention of distance is in [If then else] but the distance can only be in the condition.
So is there a way to get that distance written into a variable?
Im wondering if anyone knows a way to measure the distance between 2 units.
Ive been playing with the map editor and the only place where I found any mention of distance is in [If then else] but the distance can only be in the condition.
So is there a way to get that distance written into a variable?
Yes there is ;)
Distance between Points (Position of Unit A, Position of Unit B)
The first action is under the section "point", the second under "unit"
This returns a real (=fixed) value, so create a real variable and set the result of the distancebetween function to your variable.
@Rushhour: Go
Can you tell me where exactly have you found this Distance between Points ?
I can't seem to locate it.
EDIT: NVM found it, Thank you.