Thread: UnitPowerAlt
View Single Post
03-19-11, 08:14 PM   #25
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
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)
  Reply With Quote