Mod:Creation Kit/GetCombatState - Actor

Member of: Mod:Creation Kit/Actor Script

Gets the actor's current combat state.

Syntax
int Function GetCombatState native

Parameters
None.

Return Value
The actor's current combat state, which is one of the following values:
 * 0: Not in combat
 * 1: In combat
 * 2: Searching

Examples
if (FilthyPirate.GetCombatState == 2) ; 2 is "search" Debug.Trace("Careful! That filthy pirate is looking around...") endIf
 * Is the pirate searching?