RealDocs

UAIBlueprintHelperLibrary::SimpleMoveToLocation

function AIModule Blueprint Since unknown
#include "Blueprint/AIBlueprintHelperLibrary.h"
Access: public Specifiers: staticUFUNCTIONBlueprintCallable

Description

Instructs a controller's pawn to move to a world location using the navigation system, with no callback or complex setup. Ideal for simple one-shot move requests.

Signature

static AIMODULE_API void SimpleMoveToLocation(AController* Controller, const FVector& Goal)

Parameters

Name Type Description Default
Controller AController* The controller whose pawn will be moved.
Goal const FVector& World-space destination to move toward.

Return Type

void

Caveats & Gotchas

  • Requires a valid NavMesh over the destination. If navigation fails, the pawn may not move without any error.
  • Cancels any existing move request on the controller. Do not mix with manual UAITask_MoveTo calls on the same controller.
  • Calls UPathFollowingComponent under the hood — only works if the controller has one (AIController does by default, but PlayerController does not).

Example

Move an AI pawn to a clicked location C++
void AMyAIController::MoveToTarget(const FVector& TargetLocation)
{
    UAIBlueprintHelperLibrary::SimpleMoveToLocation(this, TargetLocation);
}

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.