MoveToLocation - shortest path
Hey, I am using MoveToLocation function (By AIController) to move the character from point to point. When the target point is in unreachable position and character does not move. How can I tell the character to get closer as it can to the reach point?
When I click the house, the target point sets to the surface (Not the roof). The Character can not reach the target point because it is inside the house. How can I tell the character to get closer as it can to the target point?
asked May 04 '15 at 05:02 PM in C++ Programming
By default it should do what you need, provided it was possible to project destination location to navmesh. I bet in this case the clicked location is too far above navmesh and projection fails. You can modify the default projection extend via project settings,
However, this would be a short-sighted fix. The proper fix would be to detect what you actually clicked and send AI to that something's location.
answered May 04 '15 at 07:28 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here