GetLifeState

From GECK
Jump to: navigation, search


A function added by the JohnnyGuitar NVSE Plugin.

Description

Returns the life state of an actor. Return values are as follows:
0 - Alive
1 - Dying
2 - Dead
3 - Unconscious
4 - Reanimated (unused)
5 - Restrained
6 - Unconscious essential

Syntax

[help]
(int) actor.GetLifeState

Example

set iLifeState to sunnyref.GetLifeState 

Notes

  • Dying state starts when actor's health reaches 0 and lasts for the amount of time determined by fDyingTimer setting.