GetAllCombatTargets - Actor

From Creation Kit
Jump to: navigation, search

Member of: Actor Script

Obtains all actors this actor considers combat targets.

Syntax

Actor[] Function GetAllCombatTargets() native

Parameters

None.

Return Value

The actors currently considered combat targets (if any)

Examples

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

See Also