GetCombatState - Actor

From the Fallout4 CreationKit Wiki
Revision as of 17:35, 9 September 2010 by imported>Plplecuyer (Created page with 'Category:Scripting Category:Papyrus '''Member of:''' Actor Script Gets the actor's current combat state. == Syntax == <source lang="papyrus"> int Function GetCombat…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Actor Script

Gets the actor's current combat state.

Syntax[edit | edit source]

int Function GetCombatState() native

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

The actor's current combat state, which is one of the following values:

  • 0: Not in combat
  • 1: In combat
  • 2: Searching

Examples[edit | edit source]

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

See Also[edit | edit source]