Difference between revisions of "StartCombat - Actor"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Jayne2132
 
imported>Qazaaq
m (wrong star wars reference.)
Line 26: Line 26:
<source lang="papyrus">
<source lang="papyrus">
; Get two of our aliases to fight each other
; Get two of our aliases to fight each other
Vapor.StartCombat(Luke)
Vader.StartCombat(Luke)
</source>
</source>



Revision as of 05:59, 6 June 2016

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