RealDocs

UBehaviorTreeComponent::IsAbortPending

function AIModule Since 4.0
#include "BehaviorTree/BehaviorTreeComponent.h"
Access: public Specifiers: const

Description

Returns true if the component is waiting for one or more latent task aborts to finish before it can apply a pending execution change.

Caveats & Gotchas

  • A task that ignores its abort request (never calling FinishLatentAbort) will leave this stuck true, stalling all further execution changes on the tree.
  • Also returns true whenever there's a locked pending execution result waiting to be applied, not just during active aborts.

Signature

bool IsAbortPending() const

Return Type

bool

Example

Guarding logic that shouldn't run mid-abort C++
if (!OwnerComp.IsAbortPending())
{
    OwnerComp.RequestExecution(EBTNodeResult::Succeeded);
}

Tags

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.