Clicking outside of navmesh to have character travel towards mouse
I'm stumbling here trying to figure out to get my character to move towards my mouse in the topdown example provided. If I click outside if my navmesh my character won't move. Which is severely interrupting. Any chance anyone has built a solution for this?
I came across this issue here https://answers.unrealengine.com/que...ml?sort=oldest
But it went mostly unanswered. I'm mostly just looking for my character to go to the edge of the navmesh when I click outside of it. I don't want the character to leave it, just travel in the direction of the mouse.
I would greatly appreciate any help on this!
It's quite easy to replicate this issue too..
1: create topdown game 2: Create new level with landscape 3: Make a small navmesh volume 4: Click the landscape where you know you don't have nav and nothing will happen. This is the issue I'm currently having.
Even though you want the character to stay in your navmesh, he still won't go towards your click.
Problem I'm now having, is how to get my character to move "TOWARDS" the hit location, but still stay in Navmesh..
Note: I've noticed as well, that if I place a navmesh volume way off in the distance, it works as intended. My character will walk towards my click location and stay in the navmesh volume he's currently in just fine.. So the hit result has to be within a navmesh volume. Trouble is... How do I bypass this check for my character?
The only thing that works so far in my testing, is creating a navmesh volume on the entire level.. And that's just not going to work well at all.
asked Oct 24 '18 at 03:19 PM in Blueprint Scripting
Follow this question
Once you sign in you will be able to subscribe for any updates here