So I have a UMG widget menu that open when I select a move-able character. In this menu you can set different aspect of the character. One particular thing I use this menu for is to move the character around.
The sequence goes like this:
- Click on the character
- Pause the game
- Show UMG widget
- Click on “Move Unit” button
- Hide UMG widget
- Wait for the player to select the position
- Set the unit to move to said location
- Show UMG widget
From here you can click away to remove the UMG widget and unpause the game.
Think of it like selecting a unit in StarCraft and click on move button and then select a position on the map for this unit to move.
My problem is at “Wait for the player to select the position”. My idea is to wait for a “left mouse button” event in the execution to continue and the get the location but I don’t know how to wait on an event.
Can anyone point me in the right direction as to how to achieve this?