View Single Post
11/25/15, 09:34 PM   #1
haggen
 
haggen's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2015
Posts: 137
Event for entering a group (and have unit frames ready)

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?
  Reply With Quote