Jesus4Lyf
Good Idea™
- Reaction score
- 397
SetDistanceToUnit
I think this is surprisingly useful.The "from" unit is the center of reference for setting the position of the "to" unit. The "dist" real is the distance to set between the units. So if you wanted a spell where a unit walks along pushing all units out of the way, you would, for each unit in "dist" range, call SetDistanceToUnit(pusher, pickedUnit, dist).
JASS:
Alternatively:
JASS:
Hopefully this inspires some creativity.