Hi guys, I want to move my character to a random place in the navmesh then stay there for a second and then repeat.
How should I do that? I’ve tried using the “simple move to location” node and then breaking the goal in a vector and I assigned every axes a random float number but there are 2 problems:
1.Somehow the character won’t move
2.If it moves, it goes to a random location maybe outside the bound of the level
If the point is way outside of navmesh the character won’t move. I suggest using GetRandomReachablePointInRadius function to find a location AI will be able to move to. Note that currently this function has a bug that results in it generating “invalid AI location”. Use IsValidAILocation to test a point in this regard.