IsInCombat

From GECK
Jump to: navigation, search


A function included in the GECK for Fallout 3.

Description

Returns 1 if the calling actor is currently in combat, and 0 otherwise.

Syntax

[help]
(inCombat:int{0,1}) actor.IsInCombat

Example

player.IsInCombat 

Notes

  • IsInCombat will return 1 if enemies are actively searching for the player.
  • If the calling reference never entered combat (But enemies were nearby) and then proceeded to go into another cell via a load door, IsInCombat may still return 1 for a few seconds.

See Also