How to prevent other inputs while one is pressed?

Hello, basically I have an issue where I have assigned some buttons to carry out a specific command in my game.

However I want to make it so that after a button is pressed, other buttons or commands can’t be made for a specific amount of time (let’s say 0.8 seconds). So basically a kind of delay before another command can be given.

Doing this to prevent button mashing.

Any help will be greatly appreciated.

2 Likes

Hey Grey27,

This is how I did it. After the button you want to press, get the player controller and “Disable Input”. Then add a “Delay” and set the time for your time. Then “Enable Input”

2 Likes

Thanks man, works great
Thank you so much.

1 Like

No problem! Make sure you set this as the answer :slight_smile:

1 Like