Thread: Event Chaining
View Single Post
04/15/14, 06:45 AM   #10
Wobin
 
Wobin's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 78
Originally Posted by Vicster0 View Post
I had no idea there was a built in PreHook in the API. I just made them myself where necessary and store the old event handler separately in case the player turns off the addon. The only problem I have run into here is if the original event handler eventually runs protected/private code somewhere in the stack. Does anyone know if the ZO PreHook accounts for that?
It doesn't, unfortunately.

You're safer trying to hook closer to the actual source.
  Reply With Quote