HappyRobot
New member
I figured I'd post this here for anyone else that has issues and also maybe for Opsive if they wanna do this instead:
In IAstarAIMovement the script stops the AI upon reaching their destination using agent.canMove = false and starts the AI movement using agent.canMove = true. The only issue is this will completely stop the AI from interacting with gravity and a few other things. This means they'll be floating in air should you move them directly or should the floor/ground move. So instead you can try this:
Replace agent.canMove = true; with agent.isStopped = false; (Line 33 for me)
Replace agent.canMove = false; with agent.isStopped = true; (Line 71 for me)
So far in my experience this has the same functionality and has no noticeable performance hit on my game.
In IAstarAIMovement the script stops the AI upon reaching their destination using agent.canMove = false and starts the AI movement using agent.canMove = true. The only issue is this will completely stop the AI from interacting with gravity and a few other things. This means they'll be floating in air should you move them directly or should the floor/ground move. So instead you can try this:
Replace agent.canMove = true; with agent.isStopped = false; (Line 33 for me)
Replace agent.canMove = false; with agent.isStopped = true; (Line 71 for me)
So far in my experience this has the same functionality and has no noticeable performance hit on my game.