"ResetPath" can only be called on an active agent

Hi, I got this bug that I get this error message after I’ve hit my enemy twice. after the first hit he is just running on the spot:

Enemy AI ResetPath error

Let me know what code you would like to have a look at if your not sure what could cause this

Nathan covers this at some point in the course. The code will change to

if (_stateMachine.NavMeshAgent.isOnNavMesh) 
{
    _stateMachine.NavMeshAgent.ResetPath();
}

Perhaps just keep going with the course until he fixes it

1 Like

As Bixarrio said. The issue is fully resolved by the end of the Dead States video.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms