Originally Posted by Wandamey
ZO_PreHook(ZO_Smithing,"OnSelectedPatternChanged", MyCustomFunction)
|
You're hooking the function in the class table. If another add-on hooks that function in the instance table BEFORE you do this, your hook will never run on the INSTANCE with earlier hook. It's generally better, and definitely less error-prone, to hook functions in instance tables. That way there's no quarrel who runs first, and everyone can call the original ZOS function if needs be.