@@ -322,6 +322,7 @@ void AIControllerData::resolveSpeed(AIController* obj, Point3F location, Move* m
void AIControllerData::resolveStuck(AIController* obj)
{
+ if (obj->mMovement.mMoveState == AIController::ModeStop) return;
ShapeBase* sbo = dynamic_cast<ShapeBase*>(obj->getAIInfo()->mObj.getPointer());
// Don't check for ai stuckness if animation during
// an anim-clip effect override.
@@ -155,6 +155,7 @@ void AINavigation::onReachDestination()
else
#endif
getCtrl()->throwCallback("onReachDestination");
+ getCtrl()->mMovement.mMoveState = AIController::ModeStop;
}
bool AINavigation::setPathDestination(const Point3F& pos)