How to know when AI finished pathfollowing C++

So I haven’t really seen any up to date explanations of how to know when your AI finished a pathfollowing request. It turned out to be really easy, and I was just not looking in the right places. But when I was googling “UE4 event when finished pathfollowing” I wasn’t finding anything up to date or useful, so that’s why I’m posting this.

The reason I needed to know this is because I needed a blueprint event to be called when the AI finished pathing. (If there is already something like this, please let me know!).

So all you have to do if you want to know when your AI finished pathfollowing is override:
void virtual AAIController::OnMoveCompleted(FAIRequestID RequestID, const FPathFollowingResult & Result)

This is implicitly called by the PathFollowingComponent. I would recommend adding this to the first line of you implementation:
Super::OnMoveCompleted(RequestID, Result);
Then add whatever extra functionality or events that you want.

Hopefully this was actually useful and not super obvious.

^^^ idk why i put this as a question

Thank you so much!