Character velocity stays at 100+ when i stop moving??

Hey guys. I have a first person character and i use get velocity to know whether or not to play the footstep sounds since there is no character mesh.

When i stop walking, about 50% of the time, the footstep sounds keep playing. I tracked the problem down to the get velocity node producing a higher number than 0 (same value as when I’m walking) when i stop walking.

In the screen shot, the print string is giving me values that should be 0 but arent.

Does anybody know how to fix a bug like this? It seems luke an engine bug thats un-fixable.

Can you guys help?

Thank you so much

o_O ?

Try reading the velocity off the component that actually drives the char:

Yup that solved it. I’m not good with this part of Unreal (animBPs) and was following a tutorial. The network you shared gives me the correct value.

Thanks for the reply!

I do get an error though with your way. The error is on the SET character speed node, so I assume that means it’s the get player character node that’s the issue. Any ideas on what I could do?

Thanks!
It’s only letting me put one image.

That’s because you’re in the animation blueprint. Check if ref is valid first.

1 Like

I was able to solve the error. I moved some nodes around and made it more organized. Thanks again for the help.