Astrolabe/API GetUnitPosition
From Esamynn's Wiki
Astrolabe ยป Astrolabe/API GetUnitPosition
Returns a World Map Point for the specified unit.
C, Z, x, y = Astrolabe:GetUnitPosition( unit, noMapChange )
[edit]
Arguments
- unit
- UnitId - a UnitId which you can get a world map position for (player and party/raid members only)
- noMapChange
- boolean - if false (or nil), then this function will adjust the current world map zoom (if needed) in order to search for a valid position for the specified unit
[edit]
Returns
- C, Z, x, y
- World Map Point - the current position of the specified player
[edit]
Details
This function returns nil for all arguments if it was unable to find a valid position for the specified unit.

