Custom BT Tasks not ticking

I made a class inherited from UBTTaskNode that I want to have some logic in the TickTask function, but it’s never ticking. I have it set up like so:

UMyBTTask::UMyBTTask(const FObjectInitializer& objectInitializer)
	: Super(objectInitializer)
{
	bNotifyTick = true;
}

void UMyBTTask::TickTask(UBehaviorTreeComponent& OwnerComp, uint8* NodeMemory, float DeltaSeconds)
{
	Super::TickTask(OwnerComp, NodeMemory, DeltaSeconds);

        //Implementation goes here
}

When I put a break point in my Behavior Tree the node does get hit as expected but when I put a breakpoint in the C++ code it never gets hit. What am I doing wrong?

After working at it some more, I finally found the solution. You also have to override ExecuteTask since the default behavior is to just return succeeded, once I overrode that to return InProgress it started ticking as expected.

2 Likes

You saved me!

Awesome, it works! :smiley: