Super::

Could you show your code please?

CPP

#include “BTTask_ClearBlackBoardValue.h”
#include “BehaviorTree/BlackboardComponent.h”

UBTTask_ClearBlackBoardValue::UBTTask_ClearBlackBoardValue()
{
NodeName = TEXT(“Clear Blackboard Value”);
}

EBTNodeResult::Type ExecuteTask(UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory)
{
Super::ExecuteTask(OwnerComp,NodeMemory);

OwnerComp.GetBlackboardComponent();

return EBTNodeResult::Succeeded;

}

headerfile

#include “CoreMinimal.h”
#include “BehaviorTree/Tasks/BTTask_BlackboardBase.h”
#include “BTTask_ClearBlackBoardValue.generated.h”

/**
*
*/
UCLASS()
class SIMPLESHOOTER_API UBTTask_ClearBlackBoardValue : public UBTTask_BlackboardBase
{
GENERATED_BODY()

public:
UBTTask_ClearBlackBoardValue();

protected:
virtual EBTNodeResult::Type ExecuteTask(UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory) override;

};

You have defined a non-member function. ExecuteTask is missing the class scope.

EBTNodeResult::Type UBTTask_ClearBlackboardValue::ExecuteTask(UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory)
{
Super::ExecuteTask(OwnerComp, NodeMemory);

OwnerComp.GetBlackboardComponent();

return EBTNodeResult::Succeeded;

}

but still

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms