Table of Contents

Method PlayAnimation

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

PlayAnimation(Animation, float, bool, TimeSpan)

Plays the specified animation.

public Task PlayAnimation(Animation animation, float animSpeed, bool queueAsAction = false, TimeSpan duration = default)

Parameters

animation Animation

Constant value representing the animation to play.

animSpeed float

Speed to play the animation.

queueAsAction bool

If true, enqueues animation playback in the object's action queue.

duration TimeSpan

Duration to keep animating. Not used in fire and forget animations.

Returns

Task