GetCombatState

From the CreationKit Wiki
Revision as of 15:16, 21 December 2014 by imported>Enai Siaion
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Gets the actor's current combat state.

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

Bug[edit | edit source]

This condition is unreliable the first time it is called after a certain amount of time has passed. If this condition is used in a place where it is frequently checked (for instance, as a spell condition on an ability, checking every second) it will probably be correct after the first iteration. But if it is used in a single shot spell, it may not be. Try adding multiple magic effects to your spell, each checking for this condition, and only making the last one actually do something.