How to stop Character movement when opening ingame menu?
Hey there unreal community, im busy building a 2 player online game. My problem right now is that when a player presses pause while he is also pressing forward, he will keep moving while he is in the in game menu.
Now this isnt really a big problem, just close the menu and you are good to go, however i also have a gameover screen that opens a ingame menu as well and it looks realy silly if you keep moving while game over. I use a "set input to ui only" node as soon as the menu opens but this doesnt stop any movement orders already in place.
Does anyone know how i can stop characters movement when the menu opens?
asked Feb 02 '17 at 02:36 PM in Blueprint Scripting
You mention Character - it has a component that has a half all movement node - I would do that in addition to the suggestions above to disabling input
answered Feb 02 '17 at 05:40 PM
Did you try doing this without using the
What might be happening is, you're disabling the input from the gamepad the moment the UI is up, which therefore disables the "release" button or the change of axis values, whatever you're using, none of them are being registered or changed as you have disabled those updates, so the game assumes the inputs are just were you left them.
answered Feb 02 '17 at 03:31 PM
You can switch possession between the UI and the pawn; that way you can use your UI with a controller. https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/PossessPawns/Blueprints/
answered Feb 02 '17 at 04:29 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here