Hi So I was Wondering On my Pause Menu BP I have the OPen Pause menu with Tab but at the end Ive set it up to disable menu But I cant then Use Tab again for Example to close the Pause menu I have to click on resume.
SO… My question are How can I enable that Pause menu Input without enable everything?
Okay… So after playing a bit more This is what I found for the Solution.
Create a boolian for IsPlayerMovealble? and Set it to true.
Then Add a brach with Above Bool and with the true Node Connect to the Movement Input.
At the Pause menu when pressing Pause Input then set the Bool False and for Unpause set is back to true.
And Also update the bool at the Widget as well.
Its messy But Works for me. Trying this for Multiplayer and Works For me
to resolve this problem you need to organize your code using programming patterns. we are lucky that this problem is old as programming itself and people before us figured out solutions for it
for example you can use the state pattern. if you have “MenuOpenState” and “InGameState” you can use custom code that define different actions for same key or automatically disable input or logic when you are in one or the other state.
I tried using Enhanced Input and it is work perfecty, I just add and remove different input mapping when open or close inventory menu. With this no need to edit any of the input events