GetCombatTarget - Actor

From the Fallout4 CreationKit Wiki
Revision as of 19:13, 30 July 2015 by imported>Plplecuyer (→‎See Also)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Actor Script

Obtains the actor this actor is currently in combat with.

Syntax[edit | edit source]

Actor Function GetCombatTarget() native

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

The actor this actor is currently in combat with (if any).

Examples[edit | edit source]

; Print a message if Bob is in combat with the player
if (Bob.GetCombatTarget() == Game.GetPlayer())
  Debug.Trace("Bob is in combat with the player!")
endIf

See Also[edit | edit source]