Download

How to disable input except for one specific key?

I’m trying to make only the F key work when the player is under a specific condition, how do i disable all input with an exception? Any help is appreciated.

Hi man, there are probably more clever ways… the only thing i can think is add a function to the all the input, like a simple “if” when a boolean is off, all the input stop working but 1.
or
Disable the input for that, and use another actor with the input enabled to read only what you want and call a custom event in the off-actor to mimic the event input you want.