Well I have a unit variable in my layout. Once I spawn a unit I save it in that so each "self" is accessible later if needed. (Which I don't atm.)
local unit = {}
--spawn player
--spawn playerAltPower
unit.player = self
-spawn pet
...
spawn pet altPower
petAltPower:SetAllPoints(unit.player.altPowerBar)
sth alike.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)
"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
|
|