Cancel a path when using RichAI

I’ve searched but I still can’t find the correct way to cancel a path before the agent has reached the end of its current path in order to give the agent a new path. I have agents that change roles and when they do they need to stop following one path and begin another. If I just start a new path I get the “Cancelled path because a new one was requested”.

My agents are using RichAI and the RVOController. Can someone please, as though talking to a simple child, explain how I can stop my agent following a path and give it a new one to follow without getting that error.

I found a thread where Aron recommends using seeker.IsDone() which returns a bool letting you know if the path calculation is complete.