AAIController::ShouldPostponePathUpdates
#include "AIController.h"
Access: public
Specifiers: virtualoverrideAIMODULE_APIconst
Description
Returns true when the navigation system should defer recalculating this agent's path. AAIController returns true while the pawn is being moved by a root-motion or cinematic sequence.
Caveats & Gotchas
- • This is an INavAgentInterface override queried by the navigation system internally — you rarely need to call it directly. Only override it in a subclass if you have a custom condition under which path updates should be deferred.
- • Returning true does not cancel the current move; it only prevents the nav system from issuing new path recalculations for dynamic obstacle avoidance during that window.
Signature
virtual bool ShouldPostponePathUpdates() const override; Return Type
bool Example
Suppress path updates during a leap ability C++
bool AMyAIController::ShouldPostponePathUpdates() const
{
if (bIsLeaping)
{
return true;
}
return Super::ShouldPostponePathUpdates();
} Tags
Version History
Introduced in: 4.8
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?