If you’re using an anim instance to play montages like a melee attack and you want to stop the character dead in its tracks, the following code will do it:
This has the benefit of stopping just the movement and the player can use other controls e.g. left mouse button, other keys etc. In my case, I wanted to have the player be able to use melee combo attacks and enable/disable input to stop the character moving won’t work for me.
Hope this helps