GetCombatTarget - Actor
Member of: Actor Script
Obtains the actor this actor is currently in combat with.
SyntaxEdit
Actor Function GetCombatTarget() native
ParametersEdit
None.
Return ValueEdit
The actor this actor is currently in combat with (if any).
ExamplesEdit
; 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