I'm having the hardest time figuring out how to properly detect when I get in a group. Whatever event I use it seems there's always some missing information at that point.
I need an event that tells me:
- I'm in a group
- The unit frames for group mates are created
And from any state
- I got invited
- I invited someone
- I was offline and logged in already in a group
- I am in a group and reloaded the UI
- Any other possible state
I was using the official source for unit frames as a guide -
http://esodata.uesp.net/current/src/....lua.html#2024
On EVENT_PLAYER_ACTIVATED it seems I can't iterate over UNIT_FRAMES.groupFrames, they're not always initialized at this point.
EVENT_GROUP_UPDATE, EVENT_UNIT_CREATED, EVENT_UNIT_FRAME_UPDATE and EVENT_GROUP_MEMBER_JOINED does not happen every time, or not with everyone, or some other shortcoming.
Any ideas?