Stop character from moving when clicking widget

I have a top down game and I am creating a widget that the player can click on to do various things.
Right now if the player clicks on anything(for example the background of the widget, or an image) the character starts moving to that location.
How can I disable the character movement while hovering over the widget?

Assuming you’re using blueprint, you can get a true/false from the node “Is Hovered” and you could use an Event Tick that Branch(es) “Is Hovered,” then Branch again on True and False for “Is Game Paused,” and if both are true, do nothing; if it is hovering and game is not paused, “Set Game Paused” to true; if it is not hovering and game is not paused, do nothing; if it is not hovering and game is paused, “Set Game Paused” to false. This should solve your problem.

Good luck!

Here’s how you do it :

http://puu.sh/cBmk0/41307ddf8f.png

Note that you’ll need to do that on the player controller :slight_smile:

Take care
David

What the hell does this even mean

Your PNG Is DOWN! HELP