Returns the position of a unit in the player's party or raid on the world map. Returns 0,0 if the unit's location is not visible on the current world map.


See also Map functions.

Signature:

unitX, unitY = GetPlayerMapPosition("unit")

Arguments:

  • unit - A unit in the player's party or raid (string, unitID)

Returns:

  • unitX - Horizontal position of the unit relative to the zone map (0 = left edge, 1 = right edge) (number)
  • unitY - Vertical position of the unit relative to the zone map (0 = top, 1 = bottom) (number)