View Single Post
12/18/14, 07:08 AM   #3
BornDownUnder
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 59
Originally Posted by merlight View Post
If I'm not mistaken, unit frames are created as needed, not immediately upon load. I think you should use:
Lua Code:
  1. local frameObj = UNIT_FRAMES:GetFrame("group"..num)
  2. local frame = frameObj.frame -- added in edit
  3. local name = frameObj.nameLabel
  4. local hp_bar = frameObj.healthBar
  5. -- etc
Thanks Merlight, I'll have to implement the change & test in a few days' time.
  Reply With Quote