How to Make a Character Rotate Towards Cursor on Right-Click in Unreal Engine 5.5?

Hi everyone,

I’m working on a project in Unreal Engine 5.5 using the Top Down template. I’d like to make my character rotate to face the direction of the mouse cursor when the right mouse button is clicked.

Here’s what I’m trying to achieve:

  1. When the right mouse button is pressed, the character rotates to face the cursor’s position on the screen.
  2. The rotation should align smoothly to the cursor’s direction, taking into account the camera’s perspective in the Top Down setup.

Can anyone provide a step-by-step guide or a blueprint example to accomplish this?

Thank you in advance for your help!

This does not take into account anything else, though - like movement method or control rotation. It literally does what it says in the topic. Chance are it’s either useless or will need to be completely re-factored. :innocent: