First person player continues sliding to the left/right after collision and adding the widget to the viewport
I made a widget blueprint and an object blueprint with the box collision in the first person template. When the player approaches the object the widget is added to the viewport. The widget is set to the UI Only Mode. As i understand in this mode no any player movement is allowed and i can operate only in the widget. But when the player collides with the object and the widget is brought to the screen it continues sliding to the either side till the next obstacle. I tried to use the Stop Movement function but it didn’t help. How can I fix this?
asked Dec 18 '18 at 03:24 PM in Blueprint Scripting
The input mode enables/disables input, not movement itself. So what happens in my opinion is that you press a movement key, the input axis goes from 0 to 1, but when the widget pops up the character movement stops getting input, so it doesn't register the key relesed event; for the character the key is still pressed, and Stop Movement won't help because the input axis value pertains.
You have to change axis inputs to 0 before showing the widget.
Follow this question
Once you sign in you will be able to subscribe for any updates here