Have Player Follow Mouse
I have a top down game made from scratch. I need the player to always be moving towards the mouse. I tried a couple of things to no avail and I tried looking at the top down project, but I just don't understand it. I feel so dumb because I can set up normal movement with arrow keys and the likes so easily, but I can't figure this out.
asked Jan 23 '19 at 07:45 AM in Blueprint Scripting
Hi! For first, read guides and documentation. All information there.
You need this: Event Tick -> Get Hit Result Under Cursor By Channel -> Location
After that just say to your pawn with AI controller Move to Location.
And if he doesn't move, check this setting in pawn: Auto Posses Ai. Set it to Placed in the world or Spawn.
answered Jan 23 '19 at 09:42 AM
And don't forget to use NavMeshBoundsVolume on your level :)
answered Jan 23 '19 at 09:45 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here