RealDocs

AAIController — UE_DEPRECATED_FORGAME annotations

function AIModule Deprecated Since 4.13
Deprecated: UE_DEPRECATED_FORGAME marks PreparePathfinding and RequestPathAndMove as deprecated since 4.13. Use FindPathForMoveRequest and BuildPathfindingQuery instead.
#include "AIController.h"
Access: public Specifiers: deprecated

Description

A compiler-warning macro applied to deprecated virtual functions in AAIController. In this class it marks PreparePathfinding and RequestPathAndMove as game-code-deprecated since UE 4.13.

Caveats & Gotchas

  • UE_DEPRECATED_FORGAME triggers a compile-time warning only in game code — engine modules themselves can still call these functions internally. This means you may see the warning even if the engine calls the method as part of a base class chain.
  • The deprecation message embedded in the macro tells you the replacement — always read it. For AAIController the replacements are FindPathForMoveRequest (for path query adjustment) and BuildPathfindingQuery (for constructing the query).

Signature

UE_DEPRECATED_FORGAME(4.13, "...")

Example

What this looks like in the header C++
// In AIController.h — do NOT call these from game code:
UE_DEPRECATED_FORGAME(4.13, "Use FindPathForMoveRequest() instead.")
virtual bool PreparePathfinding(const FAIMoveRequest& MoveRequest, FPathFindingQuery& Query);

UE_DEPRECATED_FORGAME(4.13, "Use FindPathForMoveRequest() instead.")
virtual FAIRequestID RequestPathAndMove(const FAIMoveRequest& MoveRequest, FPathFindingQuery& Query);

Version History

Introduced in: 4.13

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.