A way to override or bind OnMoveCompleted inside pawn class?

Is there way to override or bind to event aicontroller->onmovecompleted event inside pawn class?

Bind a delegate called OnRequestFinished in BeginPlay()

AAIController* AIC = Cast(GetController());

AIC->GetPathFollowingComponent()->OnRequestFinished.AddUObject(this, &YourPawnClass::YourMethod);

The method have to take 2 parameters FAIRequestID and const FPathFollowingResult&

OnMoveCompleted Delegate is deprecated, Use OnRequestFinished instead

2 Likes