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