Difference between revisions of "StartCombat - Actor"
Jump to navigation
Jump to search
imported>Jayne2132 |
imported>Scrivener07 m (Fails for actors coming out bleedout when health is not completly restored.) |
||
(One intermediate revision by one other user not shown) | |||
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 | ||
Vader.StartCombat(Luke) | |||
</source> | </source> | ||
== Notes == | |||
* 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 Also == | == See Also == |
Latest revision as of 23:53, 15 June 2018
Member of: Actor Script
Attempts to get this actor to initiate combat with the target.
Syntax[edit | edit source]
Function StartCombat(Actor akTarget, bool abPreferredTarget = false) native
Parameters[edit | edit source]
- akTarget: Who to attempt to initiate combat with.
- abPreferredTarget : If true, set akTarget as the actor's preferred target
- Default: false
Return Value[edit | edit source]
None.
Examples[edit | edit source]
; Have this actor initiate combat with the player
StartCombat(Game.GetPlayer())
; Get two of our aliases to fight each other
Vader.StartCombat(Luke)
Notes[edit | edit source]
- 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.