Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API C Map.GetBestMapForUnit

Last wiki revision 2023-07-24

Returns the current UI map for the given unit. Only works for the player and group members. uiMapID = C_Map.GetBestMapForUnit(unitToken)

  • unitToken: : UnitId
  • uiMapID: : UiMapID - Returns the "lowest" map the unit is on. For example, if a unit is in a microdungeon it will return that instead of the zone or continent map.

Prints the current map for the player.

Source

https://warcraft.wiki.gg/wiki/API_C_Map.GetBestMapForUnit · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.