Hello everyone!
I have an enemy, components are hanging on it
CharacterController
Seeker
AIDestinationSetter
RVOController
RichAI
and my EnemyController class
The question is how to properly stop the agent’s movement from my Enemy Controller script?
Disabling the CanMove flag from the RichAI component does not help, the enemy continues to move.
That depends on in which way you want to stop the agent.
If you want to disable all movement calculations completely, then use ai.canMove = false;.
If you want to make the agent gracefully slow down and stop moving, but still respect local avoidance, then use ai.isStopped = false;.
Make sure you set the flag on the right component.