I would like to know if there is any way of disabling the “W” and “S” keys from the control module inside the player’s scripts without making a whole movement script, for a game that changes between first person and 2D view
2 Likes
If you already have it forked, you can comment out the lines under the BindContextActions method in the Keyboard module that bind actions for moving forward and backward.
how can I toggle off and on forward and backwards tho
This might be what you looking for:
You can change that script, and you will get the effect you want.
You can unbind and rebind the context actions whenever you want. They use functions defined in BindContextActions that rely on the keyboard controller being self
so you’ll need to figure out how to get those back in scope when you rebind.