Quote Originally Posted by ZorbaTHut View Post
Quote Originally Posted by Lorandii View Post
I was reading the documentation for Utility.Event.Create and it confuses me. What part I do understand is the eventTable return, but I don't follow the handle return. Also, isn't the Identifier parameter the same as the Identifier whose code contains Utility.Event.Create? That doesn't appear to be the case in LibUnitChange.
The "handle" is a function that you call in order to trigger the event. The identifier *can* be the same as the identifier of the addon, but isn't required to be - in some cases, especially with libraries, you may want to credit an event to another running addon. That said, I think you may have an old version of LibUnitChange - the new one handles that more elegantly and takes responsibility for the CPU use itself.
Jump to post...