My AI stops before the end of the path

Basically I have an AI and it will not complete the path that is created. I used the code from the getting started page making one addition with raycasting so I can change the path at runtime. Even before these changes the AI would not reach the end of the path.

pastebin link to my AI code http://pastebin.com/FPa2MkJw

Hi

The AI in the get started tutorial is pretty simple.
I would suggest that you check the logic related to the nextWaypointDistance field. The AI will stop when it is that number of world units away from the end of the path with the current code.

You can also try to use one of the included movement scripts such as AIPath.