Background for Fallout 4
Member of the Actor script
boolfunctionPlayIdleWithTarget(IdleakIdle, ObjectReferenceakTarget)Native

Description

Wiki Description

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.

Documentation Comment

Send an idle to the actor to play, overriding its target with the specified reference


Caveats


Parameters

IdleakIdle

CK Wiki Description

The Idle to play on this actor.

ObjectReferenceakTarget

CK Wiki Description

The target the actor should play the Idle with - usually used for paired animations.


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

Auto-Generated Example

Idle myIdle__akIdle
ObjectReference myObjectReference__akTarget

bool returnedValue = myActor__toCallFunctionOn.PlayIdleWithTarget(myIdle__akIdle, myObjectReference__akTarget)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.