PlayIdleWithTarget - Actor

From the Fallout4 CreationKit Wiki
Revision as of 15:27, 18 October 2011 by imported>Vitamant (1 revision: Clobber re-import by Henning)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

bool Function PlayIdleWithTarget(Idle akIdle, ObjectReference akTarget) native

Parameters

  • 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

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

Examples

; 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