StartCombat - Actor

Member of: Actor Script

Attempts to get this actor to initiate combat with the target.

SyntaxEdit

Function StartCombat(Actor akTarget, bool abPreferredTarget = false) native

ParametersEdit

  • akTarget: Who to attempt to initiate combat with.
  • abPreferredTarget : If true, set akTarget as the actor's preferred target
    • Default: false

Return ValueEdit

None.

ExamplesEdit

; Have this actor initiate combat with the player
StartCombat(Game.GetPlayer())


; Get two of our aliases to fight each other
Vader.StartCombat(Luke)

NotesEdit

  • This function will fail and throw an error to the log when called on an actor that has come out of bleedout but has not

yet reached full health. At that point you must wait a few seconds before calling this function.

See AlsoEdit