Move to click loaction stops before reaching the edge
So currently I have the standard top down controller and when you click an area, like a pillar or off the ground or anywhere they player can path to it just stops moving or doesn't attempt to get there. I would like it to run to the furthest point it can then stop, even better I would like it to still run to the mouse if its clicked in a unreachable area, and just face the mouse if it cant move there. Ive attached a picture of my current BPs. its nothing complicated as I know very little about Blueprints As always any help is appreciated, Thanks!
Now I understand what it is that you are trying to achieve. My recommendation for you is to take a look at the TopDownTemplate. Create a project using this template and look at the TopDownController. If you notice, there is a Move to Hit Location function established with an input for the hit result. Then in the event graph, there is a simple function call that tells Move to Hit Location to execute when the mouse button is clicked, and provides the function with the hit location of the mouse click. This should help you figure out exactly how to set up the movement so that your character will continue to move even if you click an area that it cannot reach. Try to mirror these controls over to your current project, and you should be able to get your desired result.
Have a great day,
answered Sep 24 '15 at 07:25 PM
Sean L ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here