Background for Starfield
Member of the Actor script
ActorfunctionGetCombatTarget()Native

Description

Wiki Description

Obtains the actor this actor is currently in combat with.

Documentation Comment

Gets this actor's current combat target


Caveats


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

Auto-Generated Example

Actor returnedValue = myActor__toCallFunctionOn.GetCombatTarget()

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.