I need to bind a callback to the OnRequestFinished event of the AI controller after the AI arrives its destination. I declare the callback UFunction with the following signature:
void OnMoveCompleted(FAIRequestID RequestID, const FPathFollowingResult& Result);
But during compiling I got the following error message:
Unable to find ‘class’, ‘delegate’, ‘enum’, or ‘struct’ with name ‘FPathFollowingResult’
I already include the header:
include “Navigation/PathFollowingComponent.h”
So what’s wrong with the signature?