- Joined
- Nov 6, 2009
- Messages
- 1,462
Is there a way to detect the closest unit to a unit?
also detect the closest destructable or doodad or structure?
also detect the closest destructable or doodad or structure?
The one posted earlier didn't have a check for the picked item being equal to the original item. So it eventually picked itself as the closest item, causing it to not work, per say.
But there is no "original item". It compares the distance between items and the unit![]()