Hi!
So I have this AI. It is using a Character Controller to move and to animate my AI I’ve set it so it uses the CC velocity. So in my animator I have it to transition to walking when the velocity is greater then 0.1 and go back to idle when it is less then 0.1. The value is being set but the AI doesn’t change state. I also have this blinking mechanic. It is a simple trigger called “Blink”. And for some reason whenever that is triggered the AI animation state changes. So if I disable that it never changes. I have no idea why it does this and it have never happened before. What could be the problem?
If you need some code, here’s some of the variable setting
//Sets the velocity variable.
anim.SetFloat("Velocity", controller.velocity.magnitude);
//Makes the AI blink.
anim.SetTrigger("Blink");
And yes, the velocity is over 0.1 before you ask.
Thanks in advance