WoW:API UnitIsDead: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Move page script moved page API UnitIsDead to API UnitIsDead without leaving a redirect) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{wowapi}} | |||
Very useful to determine if a mod should be doing something if "unit" is dead. | Very useful to determine if a mod should be doing something if "unit" is dead. | ||
Line 6: | Line 7: | ||
Does not work for ("pet") unless the pet bar is still active. Not sure why the petbar stays active when the pet dies -- it used to gray out, now it will disappear after some time or some event happens, but not immediately when the pet dies. -- 5/29/2006 | Does not work for ("pet") unless the pet bar is still active. Not sure why the petbar stays active when the pet dies -- it used to gray out, now it will disappear after some time or some event happens, but not immediately when the pet dies. -- 5/29/2006 | ||
Latest revision as of 04:47, 15 August 2023
← WoW API < UnitIsDead
Very useful to determine if a mod should be doing something if "unit" is dead.
Returns 1 if "unit" is dead, nil otherwise.
Information from UnitIsDeadOrGhost("unit"):
Does not work for ("pet") unless the pet bar is still active. Not sure why the petbar stays active when the pet dies -- it used to gray out, now it will disappear after some time or some event happens, but not immediately when the pet dies. -- 5/29/2006