Stop animation triggered by action returning to idle

Hi Convai Community !!!
I’m triggering some animations on an NPC using the actions functionality.

Currently, triggered anims return the NPC to it’s idle animation. How can I stop this?
E.g. I’d like the triggered animations to loop or to transition to another animation.

Many thanks,

Nick

Hello @Nick_Clarke,

In ConvaiActionsHandler.cs, within the AnimationActions method, you’ll see this line:

animator.CrossFadeInFixedTime(Animator.StringToHash("Idle"), 0.1f);

You can either comment it out or redirect it to another animation to prevent returning to idle.

1 Like

@K3 Many thanks for the pointer. That’s great.

1 Like