Playercontroller rotation and cursor location

So i am trying to figure out in a third person setup, how to make the player keep following the location of the cursor on screen.

i have been trying allot, and i have gotten close but i am kinda beached on this issue.

any pointer in the right direction would be much apreciated

You can trace from the moust to static objects in the world and get the location of the hit and use the AI’s MoveToLocation command. Here is a brief example in the player controller of how to get the hit location.

why would i use move to location? sofar what im getting is that your character starts to spin like mad

ok so you want to set up a look at Try this:

yes that seems to work to a point.

I had to add get player controller else i get compiler errors

yes my code was done inside the player controller.

But when i move my mouse it rotates the actor, is there a way to make the player turn back into the direction its walking? because now while walking it keeps turned to the cursor locaiton