View Single Post
10-10-16, 01:17 AM   #1
Layback_
An Onyxian Warder
Join Date: Feb 2016
Posts: 358
AceEvent library and RegisterUnitEvent

Hi all,

As far as I know (or as far as I did a proper research), AceEvent-3.0 does not support RegisterUnitEvent because it utilizes a single frame to manage registered events, and each frame object in WoW can only handle maximum two different units at once.

Thus, such event like PLAYER_SPECIALIZATION_CHANGED to be fired for a player only, the easiest way that I could think of is

Lua Code:
  1. function MyAddOn:PLAYER_SPECIALIZATION_CHANGED(event, ...)
  2.     if ... == "player" then
  3.        
  4.     end
  5. end

where it still has to calls this function and go through 'if' statement

or, maybe just create an extra frame that only manages unit event...


What would be the best solution here?
  Reply With Quote