View Single Post
05/15/21, 06:05 AM   #2
Shinni
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 167
There exists the api function SetMapToMapId(mapId), so you could just call the following
Lua Code:
  1. if SetMapToMapId(mapId) == SET_MAP_RESULT_MAP_CHANGED then
  2.     CALLBACK_MANAGER:FireCallbacks("OnWorldMapChanged")
  3. end