Thread: Map changes.
View Single Post
05-07-18, 09:23 PM   #5
Nimhfree
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 267
To get the current continent the player is in you can use the following:
Code:
local currentMapId, TOP_MOST = C_Map.GetBestMapForUnit('player'), true
local currentContinentInfo = MapUtil.GetMapParentInfo(currentMapId, Enum.UIMapType.Continent, TOP_MOST)
That info contains both the mapID and name.
  Reply With Quote