Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetCurrentMapZone

Last wiki revision 2020-04-04

Returns the index of the zone the world map is currently showing

zoneIndex = GetCurrentMapZone;

  • zoneIndex
  • zoneIndex : Number - The index of the currently displayed zone within the continent (obtained via GetMapZones(continentIndex)), or 0 if showing the entire continent.

message(GetCurrentMapZone);

10

  • Note that the value returned represents the map display, and not necessarily the player's actual location. The SetMapToCurrentZone function will reset the values to represent the player's location.
  • Note that zone IDs returned by this function are not the same across all localizations of World of Warcraft.

Source

https://warcraft.wiki.gg/wiki/API_GetCurrentMapZone · 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.