#1. Unbind The Delegate “ReceiveMoveCompleted” And Then Bind It (AIController)
AIGuardController->ReceiveMoveCompleted.RemoveDynamic(this, &MyClass::OnMoveCompleted);
AIGuardController->ReceiveMoveCompleted.AddDynamic(this, &MyClass::OnMoveCompleted);
#2. Call “CreateMoveToProxyObject”
UAIBlueprintHelperLibrary::CreateMoveToProxyObject(nullptr, AIGuard, NextPoint, nullptr, 15.f);
#3. Receive Results Through The Function OnMoveCompleted
void MyClass::OnMoveCompleted(FAIRequestID RequestID, EPathFollowingResult::Type Result)
{
switch (Result)
{
case EPathFollowingResult::Success:
break;
case EPathFollowingResult::Blocked:
break;
case EPathFollowingResult::OffPath:
break;
case EPathFollowingResult::Aborted:
break;
case EPathFollowingResult::Skipped_DEPRECATED:
break;
case EPathFollowingResult::Invalid:
break;
}
}
#4.Test!!!