Difference between revisions of "GetDead"
Jump to navigation
Jump to search
imported>Vswe m (Added Search Terms) |
|||
(10 intermediate revisions by 9 users not shown) | |||
Line 1: | Line 1: | ||
'''Syntax:''' | '''Syntax:''' | ||
ActorID.GetDead | [''ActorID''.]GetDead | ||
'''Example:''' | '''Example:''' | ||
BossGoblin.GetDead | BossGoblin.GetDead | ||
Returns | 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. | |||
==See Also== | ==See Also== | ||
[[GetDeadCount]] | * [[GetDeadCount]] | ||
[[Category: Functions]] | [[Category: Functions]] | ||
[[Category:Functions (CS)]] | |||
[[Category: Functions (CS 1.0)]] | |||
[[Category: Actor Functions]] | |||
[[Category: Actor Functions (CS 1.0)]] | |||
[[Category: Actor State Functions]] | [[Category: Actor State Functions]] | ||
[[Category: Actor State Functions (CS 1.0)]] | |||
[[Category: Condition Functions]] | [[Category: Condition Functions]] | ||
[[Category: Condition Functions (CS 1.0)]] | |||
<!-- Begin Search Terms | |||
Get | |||
Dead | |||
End Search Terms --> |
Latest revision as of 08:28, 20 June 2008
Syntax:
[ActorID.]GetDead
Example:
BossGoblin.GetDead
Returns 1 if the object reference is dead.
Notes[edit | edit source]
- 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[edit | edit source]