Page 1 of 1

Get unit position

PostPosted: 25 Jan 2014, 17:04
by Sho_Ke
According to this page, there are functions to get the unit or house ID of the unit or house at a given X, Y coordinate. Is there a way to go from unit/house ID and get the X, Y coordinate of it?

Thanks,
Sho Ke

Re: Get unit position

PostPosted: 25 Jan 2014, 18:35
by RandomLyrics
Yes.
  Code:
States.UnitPositionX(UnitID) States.UnitPositionY(UnitID) States.HousePositionX(UnitID) States.HousePositionY(UnitID)

Re: Get unit position

PostPosted: 25 Jan 2014, 18:48
by Sho_Ke
Wow I completely overlooked that section under States :$ Thanks.