View Single Post
08/27/21, 12:59 AM   #7
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
EVENT_ZONE_UPDATE, but I can't even get my function to call that should be hooked to it.
Just a naming hint: It's called "callback" not "hook".

ZOs provies ZO_PreHook, ZO_PostHook which is a real hook to the functions, so that your code calls before/After the original one.
But normal event functions are considered to be callbacks to that event.

btw event_zone_changed fires too often for you as it will also fire if you change a subzone in a zone, like the map updates to a new area in the zone (a city e.g.).
At least this is what I had found out in the past.
  Reply With Quote