object rotation based on mouse screen location with blueprint

I have been trying to make a 2D platform shooter with 3d assets like Mega Man but In my game, it has more movement focus and you need to aim your gun (like in games like my friend pedro). but in every video I look at, they do it based on “mouse hit” or they say get the mouse position but that doesn’t really work because it’s based on the screen size on your display and not based on the gameplay screen area if you know what I mean.

tdlr: do you guys know any to get a 2d mouse position based on the gameplay screen and know how to use that to make an object rotate to face? THANKS A LOT!!! (also sorry for any grammar/spelling problems)

Would “Get mouse position on viewport” work?

In the player controller:

This if the fix for me, hope this is useful for someone.