Space Plunder
Loading...
Searching...
No Matches
BTD_DistanceTo.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/BTDecorator.h"
7#include "BTD_DistanceTo.generated.h"
8
17UCLASS()
18class AITOOLKIT_API UBTD_DistanceTo : public UBTDecorator
19{
20 GENERATED_BODY()
21
22public:
23
25
26protected:
27
28 virtual FString GetStaticDescription() const override;
29#if WITH_EDITOR
30 virtual FName GetNodeIconName() const override;
31#endif // WITH_EDITOR
32
33
34 //- Can be AActor or FVector Location //
35 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="AI")
36 FBlackboardKeySelector TargetActor;
37 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="AI")
38 float MaxDistance = 100.0f;
39
40 virtual bool CalculateRawConditionValue(UBehaviorTreeComponent& OwnerComp, uint8* NodeMemory) const override;
41
42 virtual void TickNode(UBehaviorTreeComponent& OwnerComp, uint8* NodeMemory, float DeltaSeconds) override;
43
44};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
A behavior tree decorator that checks the distance between the owner and the target actor.
Definition BTD_DistanceTo.h:19