StartCombat - Actor

From the Fallout4 CreationKit Wiki
Revision as of 17:06, 25 March 2014 by imported>Jayne2132
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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
Vapor.StartCombat(Luke)

See Also