View Single Post
09-03-14, 07:41 AM   #15
TOM_RUS
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 95
Originally Posted by Duugu View Post
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):

Last edited by TOM_RUS : 09-03-14 at 07:53 AM.