Space Plunder
Loading...
Searching...
No Matches
BTTask_InteractWithTarget.h
Go to the documentation of this file.
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "BehaviorTree/BTTaskNode.h"
7#include "BTTask_InteractWithTarget.generated.h"
8
13UCLASS()
14class AITOOLKIT_API UBTTask_InteractWithTarget : public UBTTaskNode
15{
16 GENERATED_BODY()
17
18public:
20
21 //- Time Between Attempts //
22 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="AI")
23 float DelayDuration = 0.2f;
24 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="AI")
25 int32 Attempts = 4;
26 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="AI")
27 FBlackboardKeySelector TargetObject;
28 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="AI")
29 FBlackboardKeySelector bIsSomethingInTheWay;
30
31 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="AI|Debugging")
32 bool bDebuggingMode = false;
33
34private:
36 {
37 AActor* TargetActor = nullptr;
38 float StartTime = 0.0f;
39 int32 TotalAttempts = -1;
40 };
41 // UPROPERTY()
42 // AActor* TargetActor = nullptr;
43 // float StartTime = 0.0f;
44
45protected:
46
47 virtual EBTNodeResult::Type ExecuteTask(UBehaviorTreeComponent& OwnerComp, uint8* NodeMemory) override;
48 virtual EBTNodeResult::Type AbortTask(UBehaviorTreeComponent& OwnerComp, uint8* NodeMemory) override;
49 virtual void TickTask(UBehaviorTreeComponent& OwnerComp, uint8* NodeMemory, float DeltaSeconds) override;
50
51 virtual uint16 GetInstanceMemorySize() const override;
52
53 virtual FString GetStaticDescription() const override;
54#if WITH_EDITOR
55 virtual FName GetNodeIconName() const override;
56#endif // WITH_EDITOR
57
58
59};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition BTTask_InteractWithTarget.h:15
Definition BTTask_InteractWithTarget.h:36