Quantcast WoWInterface - View Single Post - Map changes.
Thread: Map changes.
View Single Post
05-07-18, 09:23 PM   #5
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 261
To get the current continent the player is in you can use the following:
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