I dont think its possible to determine how far away the unit is that easily, what you could do is create a region by trigger in a square form over the unit and have a trigger verify if there is another unit.
unless there are function that return the distance from one position to another which im unaware
edit: return distance seem to be (Distance between (Position of (Triggering unit)) and (Position of (Triggering unit))) == Value 2
Well, you could periodically run a trigger that will get all units within the range of your unit, within a range, within a circle, so it's the actual range. And, if need be, run filters for those units.
Edit: Nevermind. Yet, I think .1 is the melee range for units. For the range, if that's the area you want it to be. o.o
Yah basically, I need whenever a road is finished to check if there is another road nearby, then check if is custom value is x1 or x2, and if said then do whatever
camelCase is not to blame in this case. give_me_rep replied earlier that day.
As for camelCase's suggestion, it's a good idea and it can be a good way to learn more about vectors. However I think the best way to do it is to just use the "Distance between Points" function and use the "Position of Unit" function to get the position of the two units.
I'm on a page about incorrect corrections, and spent the better part of like two hours trying to get someone to understand that -5^2 = -25, not 25, and then that post had comments get reposted because that group is self sustaining, and that person was in turn trying to explain what I just explained to them. And I'm taking that as a victory
I will be AFK for a couple of days you guys hold down the fort while I am gone. I will be checking in on my phone but that will severly limit me. Be back saturday!