Astrolabe/API GetUnitPosition

From Esamynn's Wiki

Jump to: navigation, search

Astrolabe ยป Astrolabe/API GetUnitPosition

Returns a World Map Point for the specified unit.

C, Z, x, y = Astrolabe:GetUnitPosition( unit, noMapChange )

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

Returns

C, Z, x, y
World Map Point - the current position of the specified player

Details

This function returns nil for all arguments if it was unable to find a valid position for the specified unit.

Personal tools