Stop FollowerEntity Immediately

Hello there,

Is there a good way to stop the FollowerEntity immediately? For RichAI, I was setting desiredVelocityWithoutLocalAvoidance to zero, but it looks like that’s not implemented for the FollowerEntity. Is there another method I should look into?

Thanks!

Hi

Setting ai.maxSpeed = 0 would do it.
Alternatively, you could do ai.Teleport(ai.position), as that will clear the current path and set the velocity to zero too. But note that it will start moving towards its current destination almost immediately.