RealDocs

AAIController::RequestPathAndMove

function AIModule Deprecated Since 4.0
Deprecated: Use FindPathForMoveRequest() for adjusting pathfinding or path postprocess.
#include "AIController.h"
Access: public Specifiers: virtualdeprecated

Description

Deprecated since UE 4.13. Formerly submitted a pathfinding query and started movement. Replaced by FindPathForMoveRequest and the MoveTo pipeline.

Caveats & Gotchas

  • Overrides of this function are silently bypassed by the engine since 4.13 — the new move pipeline does not call it. Any custom logic in an old override is no longer executed.
  • Calling this directly will trigger a UE_DEPRECATED_FORGAME compiler warning and may produce unpredictable results since the engine no longer wires it into the movement pipeline.

Signature

virtual FAIRequestID RequestPathAndMove(const FAIMoveRequest& MoveRequest, FPathFindingQuery& Query)

Parameters

Name Type Description Default
MoveRequest const FAIMoveRequest& The move request describing the goal.
Query FPathFindingQuery& Prepared pathfinding query to submit.

Return Type

FAIRequestID

Example

Migration: use MoveTo instead C++
// OLD (deprecated):
// FAIRequestID id = RequestPathAndMove(MoveReq, Query);

// NEW: build the request and call MoveTo
FAIMoveRequest MoveReq(TargetActor);
MoveReq.SetAcceptanceRadius(100.f);
FPathFollowingRequestResult Result = MoveTo(MoveReq);

Version History

Introduced in: 4.0

Version Status Notes
5.6 deprecated Deprecated since 4.13 via UE_DEPRECATED_FORGAME.

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.