Limen Framework 0.1 Help

UBTDecorator_RandomChance

Overview

UBTDecorator_RandomChance is a Behavior Tree decorator that evaluates whether a randomly generated float falls within a specified range. It inherits from UBTDecorator and uses a blackboard key to determine the success condition.

Properties

Type

Name

Access

Description

FValueOrBBKey_Float

ChanceToSucceedBlackboardKey

EditAnywhere

The blackboard key that determines the success chance.

float

MinRandomValueRange

EditAnywhere

The minimum value of the random range.

float

MaxRandomValueRange

EditAnywhere

The maximum value of the random range.

Functions

Return Type

Signature

Description

bool

CalculateRawConditionValue(UBehaviorTreeComponent& OwnerComp, uint8* NodeMemory) const

Calculates whether the decorator should succeed based on a random float and the blackboard key value.

Usage & Implementation Notes

  • Threading Constraints: This decorator does not have specific threading constraints.

  • Replication Requirements: None.

  • Memory Lifetime Management: The decorator does not manage any significant memory that requires special handling.

  • Initialization Dependencies: Depends on ULimenGlobalRandomStreamSubsystem for generating random numbers.

22 May 2026