View Single Post
05/17/14, 12:47 PM   #10
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by Garkin View Post
  • Add some way to find out that map was changed. Event EVENT_ZONE_CHANGED does not mean that there is different map now.
    We have to use workarounds like check in some OnUpdate loop if there is different map name/floor index or use EVENT_QUEST_POSITION_REQUEST_COMPLETE which is accurate, but only if you have quests and you have to keep in mind that this event occurs for all quests.
It seems that it is possible to use this callback:
Lua Code:
  1. CALLBACK_MANAGER:RegisterCallback("OnWorldMapChanged",  callbackFunction)