Hi, I have just added pausing and unpausing to my game however, when I pause while pressing another input, that input get stuck on when unpausing. I have flush input ticked on the set input mode nodes and call flush input on the player controller after unpausing yet still nothing unsticks the inputs. Am I doing something wrong or is there a way I can set all inputs to 0 when unpausing?
1 Like
Hey there @BLAZEPunk! FlushInputs doesn’t always work, however there are a couple workarounds.
I personally like to use a stopgap measure between all input and their outputs that blocks input at all for a frame after a pause, but this is only really viable in singleplayer games.
Some other users have been able to call FlushPressedKeys() after the pause ends to stop most inputs, but it doesn’t work on axis inputs every time.