Mod:Creation Kit/GetCombatTarget - Actor

Member of: Mod:Creation Kit/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
if (Bob.GetCombatTarget == Game.GetPlayer) Debug.Trace("Bob is in combat with the player!") endIf
 * Print a message if Bob is in combat with the player