I've been learning alot about pathfinding recently and have created a basic AI for my infantry and vehicles.
Basically, when my basic soldier sees an enemy, it will currently stop and engage. Using this code:
After it no longer sees any enemy, it will revert back to it's main state.
I've basically copied this code across to my car but want to know if there is a way to let it roll to a stop instead of it's speed just instantly going to 0...
This is it's current pathfinding setting btw: (just in case it's useful)