Make ai play animation only when input executed

in the Event graph of the animation blueprint, you want to try get owning pawn > Cast to (whatever your characters name is) > drag out the blue pin and Get Character Movement Component > get velocity. you can then use a branch to check if velocity is <= 0 set a boolean variable to false . Then use that boolean variable to switch between animations in the anim graph

I’m using the ai move to node every time the ai comes toward me I would like the animation to play then when it stops the animation stops I do have a animation blueprint setup.