Originally Posted by Duugu
ClosestGameObjectPosition
ClosestUnitPosition
Uh, these look promissing. But I bet they are related to garrison stuff, hm?
|
Those API's only work for units that have 0x10 flag set at [[objPtr+284]+324] (DWORD) and gameobjects that have 0x1 flag set at [[objPtr+280]+22] (BYTE).
Not sure what those special objects are.
Screenshotted after playing a bit with debugger (to make that API work on any unit):