Thread Tools Display Modes
01-28-08, 04:38 AM   #1
ProfOak
A Cyclonian
Join Date: Oct 2005
Posts: 47
Event triggered when a target get back to life

Hi.

I'm trying to find out which event is triggered when you have a target that dies and without desselecting it, either it is rezzed or it rezzes after being dead.

No clue if I'm explaning right O.o

Okie, maybe explaining the point, a part of an addon I'm developping, shows a target's health, usually it's a palyer in party/raid. When target dies, I hide health information, and I would like to have it back display when the target gets back to life, either due to get rezzed by me or some1 or by rezzing it self, after being a ghost that is.
The prob is that I cant find the event that triggers here, UPDATE_SELECTED_CHARACTER dont fire... i think cause i doesnt work, nor UNIT_HEALTH, since the target didnt got any healing or dmg.

Any clues bout in which events shall I put the health to be showned ?

Thank You all for reading and helping
Cheers
  Reply With Quote
01-28-08, 07:08 AM   #2
Shirik
Blasphemer!
Premium Member
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2007
Posts: 818
Originally Posted by ProfOak View Post
Hi.

I'm trying to find out which event is triggered when you have a target that dies and without desselecting it, either it is rezzed or it rezzes after being dead.

No clue if I'm explaning right O.o

Okie, maybe explaining the point, a part of an addon I'm developping, shows a target's health, usually it's a palyer in party/raid. When target dies, I hide health information, and I would like to have it back display when the target gets back to life, either due to get rezzed by me or some1 or by rezzing it self, after being a ghost that is.
The prob is that I cant find the event that triggers here, UPDATE_SELECTED_CHARACTER dont fire... i think cause i doesnt work, nor UNIT_HEALTH, since the target didnt got any healing or dmg.

Any clues bout in which events shall I put the health to be showned ?

Thank You all for reading and helping
Cheers
As far as I'm aware there is no event for this. You'll just have to repeatedly check if he's dead using the UnitXX functions and respond accordingly. OnUpdate will be useful for this, but please keep the processing to a minimum.
__________________
たしかにひとつのじだいがおわるのお
ぼくはこのめでみたよ
だけどつぎがじぶんおばんだってことわ
しりたくなかったんだ
It's my turn next.

Shakespeare liked regexes too!
/(bb|[^b]{2})/
  Reply With Quote
01-29-08, 05:24 AM   #3
ProfOak
A Cyclonian
Join Date: Oct 2005
Posts: 47
Ok,

Thks for ur reply :P
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Event triggered when a target get back to life


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