Difference between revisions of "PlayIdleWithTarget - Actor"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Vitamant
m (1 revision: Clobber re-import by Henning)
 
imported>Qazaaq
m
 
Line 1: Line 1:
[[Category:Scripting]]
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:Papyrus]]
[[Category:Animation]]
'''Member of:''' [[Actor Script]]
'''Member of:''' [[Actor Script]]



Latest revision as of 03:49, 25 October 2016

Member of: Actor Script

Plays the idle passed and overrides the actor's target with the given target. If no target is passed, then the idle will use the actor's current target instead.

Syntax[edit | edit source]

bool Function PlayIdleWithTarget(Idle akIdle, ObjectReference akTarget) native

Parameters[edit | edit source]

  • akIdle: The idle to play on this actor.
  • akTarget: The target the actor should play the idle with - usually used for paired animations.

Return Value[edit | edit source]

True if the idle was successfully loaded and played, false otherwise.

Examples[edit | edit source]

; Start Hadvar's backstab paired idle against the thief
if Hadvar.PlayIdleWithTarget(Backstab, Thief)
  Debug.Trace("Hadvar just backstabbed the thief!")
else
  Debug.Trace("Something went wrong")
endIf

See Also[edit | edit source]