GetAllCombatTargets - Actor

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Actor Script

Obtains all actors this actor considers combat targets.

Syntax[edit | edit source]

Actor[] Function GetAllCombatTargets() native

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

The actors currently considered combat targets (if any)

Examples[edit | edit source]

Actor[] targets = Bob.GetAllCombatTargets()
if targets.length > 10
  Debug.Trace("Wow... we're against tall odds!")
endIf

See Also[edit | edit source]