Mod:Creation Kit/PlayIdleAction - Actor

Member of: Mod:Creation Kit/Actor Script

Attempts to play an idle from the action root passed.

Syntax
bool Function PlayIdleAction(Action aAction, ObjectReference aTarget = None) native

Parameters

 * aAction: The Action form the actor is attempting to play an idle from.
 * aTarget: Optional parameter noting the target of the actor's action.
 * Default: None

Return Value
True if an idle was successfully loaded and played, false otherwise.

Examples
if DogmeatRef.PlayIdleAction(barkAction) Debug.Trace("Dogmeat barked!") else Debug.Trace("Something went wrong") endIf
 * Make Dogmeat Bark