Character keeps walking after UI closes?

My character will stop when the UI opens (it’s a dialogue system).
But when the dialogue closes, if it’s only been a few seconds, the character starts walking again (no key presses are being made). And it’s incredibly game breaking. I’ve tried every method of disabling input but nothing seems to stop my character from starting walking again?
Gone through several tutorials watching how they do it, and nothing seems to stop my character from moving.

have you tried The Set Game Paused node.
it’s really helpful. Please try it

Possibly you are using an InputAction which makes the character start walking when a button is pressed, to stop when the button is released. however if a dialog opens the “release” event is handled by the UI instead of the character, causing it to start walking later on. This is the most likely situation happening here but I’m making some assumptions because you haven’t shown the code.

That does indeed sound game breaking especially if your character wanders off to a dangerous place. I found two basic methods and I hope they provide you assistance. Testing these with Keyboard [E] stopped their movement.

1 Like