GetAllCombatTargets - Actor

From the Fallout4 CreationKit Wiki
Revision as of 12:28, 31 July 2015 by imported>Valie
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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]