View Single Post
03/18/23, 06:10 PM   #9
nilo
Join Date: Feb 2022
Posts: 15
Ok so now I have a new problem, I'm successfully calling my UpdateMyRole function whenever EVENT_GROUP_MEMBER_ROLE_CHANGED triggers, however I need smth to call this function whenever I stop being in a group and my roleId changes to LFG_ROLE_INVALID.
In order to fix this I tried doing this
Code:
EM:RegisterForEvent(LGRI.name, EVENT_GROUP_MEMBER_LEFT, LGRI.UpdateMyRole)
EM:AddFilterForEvent(EVENT_GROUP_MEMBER_LEFT, ????????? , string memberDisplayName)
I checked this page, however I don't know which filter type to fill that blank with
https://wiki.esoui.com/AddFilterForEvent

https://wiki.esoui.com/EVENT_GROUP_MEMBER_LEFT
also I just found this here
"isLocalPlayer - simple boolean
True if it is the player, false for other group members."
I guess I could use this too but again, i can't find which filter type to use

Last edited by nilo : 03/20/23 at 10:48 AM.
  Reply With Quote