Space Plunder
Loading...
Searching...
No Matches
BTD_LowHealth.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_LowHealth.generated.h"
8
12UCLASS()
13class AITOOLKIT_API UBTD_LowHealth : public UBTDecorator
14{
15 GENERATED_BODY()
16
17
18public:
19
21
22protected:
23 virtual FString GetStaticDescription() const override;
24
25#if WITH_EDITOR
26 virtual FName GetNodeIconName() const override;
27#endif // WITH_EDITOR
28
29
30 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="AI")
31 float LowHealthAmount = 20.0f;
32 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="AI")
33 bool bUseHealthPercent = true;
34 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="AI")
35 float LowHealthPercent = 20.0f;
36
37 virtual bool CalculateRawConditionValue(UBehaviorTreeComponent& OwnerComp, uint8* NodeMemory) const override;
38
39};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition BTD_LowHealth.h:14