View Single Post
11/27/15, 06:26 AM   #8
haggen
 
haggen's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2015
Posts: 137
Originally Posted by sirinsidiator View Post
UNIT_FRAMES.groupSize is only updated in specific cases.
  • EVENT_PLAYER_ACTIVATED fires
  • EVENT_GROUP_UPDATE fires and EVENT_UNIT_CREATED or EVENT_UNIT_DESTROYED has fired before
  • every second in the OnUpdate handler of ZO_UnitFrames if EVENT_UNIT_CREATED or EVENT_UNIT_DESTROYED has fired before
If you want to know the group size before that happens, use GetGroupSize() instead.
Thank you. I actually was just trying to check if the unit frames for group were ready. I guess this wasn't the best way to do this. Anyway, as I said, I'm gonna improve the tests and run some full scenarios so I can better evaluated what happens when and in what order.
  Reply With Quote