Difference between revisions of "GetDead"
Jump to navigation
Jump to search
imported>Kivan (Added note on GetDead working on respawning refs. (tested on guards)) |
imported>Haama m (Standardized) |
||
Line 4: | Line 4: | ||
BossGoblin.GetDead | BossGoblin.GetDead | ||
Returns 1 if the object reference is dead | Returns 1 if the object reference is dead. | ||
It will also return a correct result for a respawning reference (ie a guard) returning 1 if the reference is currently dead, and 0 when the reference respawns later. | ==Notes== | ||
*This is more accurate than checking the actor's health because there are circumstances when the actor can die without losing all of their health (such as through [[Kill]]). | |||
*It will also return a correct result for a respawning reference (ie a guard) returning 1 if the reference is currently dead, and 0 when the reference respawns later. | |||
==See Also== | ==See Also== |
Revision as of 11:18, 12 May 2008
Syntax:
[ActorID.]GetDead
Example:
BossGoblin.GetDead
Returns 1 if the object reference is dead.
Notes
- This is more accurate than checking the actor's health because there are circumstances when the actor can die without losing all of their health (such as through Kill).
- It will also return a correct result for a respawning reference (ie a guard) returning 1 if the reference is currently dead, and 0 when the reference respawns later.