I have problem with ai

my ai is using root motion and i want it toggle from walk to running while running away from player and after finish i want it to go to walking

Have you tried blendspaces?

i saw a youtube video about making blendspace and i made one but i dont know how to change bettween animation using blendspace

can you pls help me with making directional movement root motion blendspace for an ai and i sended a picture of my blendspace up there in my question i want my ai to run when someone is attacking just tell me how to make it change animation to run and i will make when apply damage run away

But this has nothing to do with A.I.

The AI ​​moves the character.
The speed value of the blendspace should change according to the speed of the character.

yeah but with root motion the animation choose the speed even if i editd the character speed nothing will happen .

Can someone help please

I’m sorry I don’t use root motion, I didn’t know someone still used it

ohh I use Root Motion because it make the animation look realistic

could Anyone help me please?