Originally Posted by merlight
If I'm not mistaken, unit frames are created as needed, not immediately upon load. I think you should use:
Lua Code:
local frameObj = UNIT_FRAMES:GetFrame("group"..num) local frame = frameObj.frame -- added in edit local name = frameObj.nameLabel local hp_bar = frameObj.healthBar -- etc
|
Thanks Merlight, I'll have to implement the change & test in a few days' time.