StartCombat - Actor

From the Fallout4 CreationKit Wiki
Revision as of 05:59, 6 June 2016 by imported>Qazaaq (wrong star wars reference.)
Jump to navigation Jump to search

Member of: Actor Script

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

Syntax

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

Parameters

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

Return Value

None.

Examples

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


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

See Also