How do I make the buttons on screen do something?

Im making a mobile game where the main player stands still and only turns right or left 90 degrees so how do I make the buttons on screen make the player look left 90 or right 90 Etc as a test I have the right button quitting the game.

I guess you could do something like:
On clicked → Get Pawn → Add Controller Yaw Input (90 , -90).
Or Get Pawn → Set Actor Rotation for absolute rotations.
Hope this helps.

Ive tried that im in the graph editor for the UMG widget and sadly while in that graph editor you cant find anything like that i guess there not linked

These nodes do more or less what you’re describing. Still, it’s not perfect (Rotation value needs fine tuning, and I don’t know if the above way of accessing the pawn is good practice because of that ‘cosmetic only’ specification).
And for some reason using ‘Set Actor Rotation’ did not work on the pawn referenced either way.

OH GOD YOU ARE MY HERO! For starters the reason why I couldn’t find any pawns was because I had the context sensitive box checked but I took that off and found functions like ‘get owning player’ and ‘player pawn’ but even then what you posetd really helped thanks alot! :smiley:

49216-ttyt.gif

You’re welcome. Good luck on the project!