API ClosestUnitPosition

Returns the unit position of the closest creature by ID. Only works for mobs in the starting zones.
 x, y, distance = ClosestUnitPosition(creatureID)
==Arguments==
:;creatureID: - NPC ID of a GUID of a creature.
==Returns==
:;x:
:;y:
:;distance: - Relative distance in yards.
==Patch changes==