Hello. I have an NPC following a preset path, but when it detects a player by raycast, it will chase the player position by MoveToPoint. But when the player leaves the raycast, it will call ResumeLastPath ().
Most of the time it can return to the preset path. But sometimes when it follows the player to too far, it cannot return to the preset path. May I ask is this related to the path generated by MoveToPoint (I am not using PathFinding this time)? Or is it due to the distance it is away from the preset path?
Comments