WoW:API UnitIsDeadOrGhost: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Move page script moved page API UnitIsDeadOrGhost to API UnitIsDeadOrGhost without leaving a redirect) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{wowapi}} | |||
Very useful to determine if a mod should be doing something if your ("unit" => "player") dead or a ghost. | Very useful to determine if a mod should be doing something if your ("unit" => "player") dead or a ghost. | ||
Returns | Returns 1 if "unit" is dead or a ghost, nil otherwise. | ||
---- | |||
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
Very useful to determine if a mod should be doing something if your ("unit" => "player") dead or a ghost.
Returns 1 if "unit" is dead or a ghost, nil otherwise.
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