- Joined
- Apr 19, 2008
- Messages
- 2,542
When I call GetUnitX and GetUnitY on a unit, they are returning the X and Y of the unit +16 rather than its true coordinate, but only when the unit in question has collision size >= 16 and is not UNIT_TYPE_STRUCTURE. However, as we cannot query the unit's collision size in JASS, this would seem to suggest that there is no way to accurately determine the coordinates of a unit.
That seems absurdly stupid to me. How do I accurately determine the coordinates of a unit in JASS (or vJASS)? Has anyone decompiled game.dll and built a special one for mods, where we can accurately determine the coordinates of a unit maybe?
I just feel like I'm missing something, I was never aware that this was an issue before, I had put my faith in GetUnitX and GetUnitY.
That seems absurdly stupid to me. How do I accurately determine the coordinates of a unit in JASS (or vJASS)? Has anyone decompiled game.dll and built a special one for mods, where we can accurately determine the coordinates of a unit maybe?
I just feel like I'm missing something, I was never aware that this was an issue before, I had put my faith in GetUnitX and GetUnitY.