Originally Posted by Baertram
Basically you need to do EVENT_MANAGER:RegisterForEvent("myAddonName", EVENT_GROUP_MEMBER_ROLE_CHANGED, yourCallbackFunctionForThatEvent) within your EVENT_ADD_ON_LOADED callback function, without any zo_callLater!
This will register yourCallbackFunctionForThatEvent for that event, whenever it fires (should fire each time a group member changes his role).
|
I tried doing this, rn it's like this, I'm in group with tank role lets say, I reloadui, the texture on screen is the tank one as it should but if I change role it updates the texture to the one as if my role is roleId = LFG_ROLE_INVALID
Originally Posted by Baertram
btw: You got a typo in your event name!
EVENT_GROUP_MEMBER_ROLE_CHANGED
without S after ROLE
|
and thank you so much for this