LEAP Documentation 40220
Documentation for the LEAP project
BTDecorator_RandomChance.h
Go to the documentation of this file.
1// Copyright Blue Isle Studios Inc 2022. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "BehaviorTree/BTDecorator.h"
7#include "BTDecorator_RandomChance.generated.h"
8
9UCLASS()
10class PROJECTX_API UBTDecorator_RandomChance : public UBTDecorator
11{
12 GENERATED_BODY()
13
14public:
15 UPROPERTY(EditAnywhere, BlueprintReadWrite, meta=(ClampMin=0.0, ClampMax=1.0))
16 float Chance = 0.2f;
17
18 virtual bool CalculateRawConditionValue(UBehaviorTreeComponent& OwnerComp, uint8* NodeMemory) const override;
19 virtual FString GetStaticDescription() const override;
20};
Definition: BTDecorator_RandomChance.h:11