View Single Post
08-26-06, 02:39 PM   #9
Delsphynx
A Defias Bandit
Join Date: Apr 2006
Posts: 2
Is it correct to assume that the UNIT_HEALTH event would cause a script to be fired any time a unit health changes - meaning, target health, your health, party health, raid health, etc. etc.?

What I'm trying to figure out is an eloquent way to have a button appear when, say, something can be Executed. The script itself is pretty straightforward, using UnitHealth("target") < 20. The part I can't get past is how to set up the event to run the script. What I really need is an event for the target's health changing, only. It just seems there has to be a way to do that, without tying in to every unit health change that is happening. Maybe I'm assuming that lots of unit health event firings is a performance issue, and it really isn't that bad?
  Reply With Quote