Thread Tools Display Modes
06-07-07, 08:24 AM   #1
gerald.turaray
A Kobold Labourer
Join Date: Jun 2007
Posts: 1
Unhappy getting HP on nameplates

Hello,

I've been trying to make an addon that will filter out friendly nameplates that have full hp bars. so far this is what i have:

Code:
....

function WorldFrame_OnUpdate(elapsed) 
		
		for i = 1, WorldFrame:GetNumChildren() do
		
			local myFrame = select(i,WorldFrame:GetChildren())
		
			if IsFrame(myFrame) then 
				local tempFrame=select(2,myFrame:GetChildren())
				-- do something here T_T
			end
		end
	
	bak_WorldFrame_OnUpdate(elapsed) 
end 

...
my problem now is i'm stuck on the part that should check the hp bar. do you guys have an idea on how to go about it?

thanks.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » getting HP on nameplates


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off