Click to move problem with Top Down Blueprint Template (Solution)

I’m not sure if this has been addressed by someone else yet, but just in case it hasn’t I was noticing something when trying to use the top down blueprint template. It has to do with the click to move feature. I noticed that when loading up a blank or default level (instead of the example one) the click to move is very weird. Of course you need a nav mesh for it to work properly but if you happen to click anywhere other than a hard surface for the controller to move to (ie: The hit result returns 0, 0, 0 as its location) the player will move to point 0, 0, 0 instead of just stopping movement at its current position.

This is a simple fix for that and requires going into the default MyController blueprint in the template. The following image is probably the easiest way to fix this problem that I’ve found. In case this becomes a pain for anyone else.

-Will

EDIT: I suppose the same could be done with the hit normal instead of the hit location as well. That way it doesn’t nullify the ability to move to location 0, 0, 0 in the scene. Though I’m not sure how much damage that could do unless the game requires the player to be able to move to the exact world origin for some reason.

It’s more like hack instead of solution. I’ve found better way how to achieve that. Check “Edit” part of my pretty much same problem: Clicking outside NavMesh move my character to 0, 0, 0 point - Character & Animation - Unreal Engine Forums

Cheers!