GetCombatTarget - Actor

From the CreationKit Wiki
Revision as of 15:26, 18 October 2011 by imported>Rhavlovick (1 revision: Clobber re-import by Henning)
(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

Actor Function GetCombatTarget() native

Parameters

None.

Return Value

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

Examples

; 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