Limen Framework 0.1 Help

UBTService_CompareAttributeValue

Overview

UBTService_CompareAttributeValue is a Behavior Tree service designed to compare the current value of an attribute against a specified value using a comparison operator. The result of this comparison (true or false) is then stored in a designated blackboard key. This service can be used within behavior trees to make decisions based on attribute values.

Properties

Type

Name

Access

Description

FBlackboardKeySelector

AttributeInstance

EditAnywhere

The blackboard key selector for the attribute to compare.

FValueOrBBKey_Float

ValueToCompareAgainst

EditAnywhere

The value or blackboard key containing the value to compare against.

EComparisonOperator

ComparisonOperator

EditAnywhere

The comparison operator used to compare the attribute's current value with the specified value.

FBlackboardKeySelector

ComparisonResult

EditAnywhere

The blackboard key selector where the result of the comparison will be stored (true or false).

Functions

Return Type

Signature

Description

void

OnSearchStart(FBehaviorTreeSearchData& SearchData)

Called when the service starts searching. Calls the base class implementation.

void

TickNode(UBehaviorTreeComponent& OwnerComp, uint8* NodeMemory, float DeltaSeconds)

Ticks the node and performs the attribute comparison.

Usage & Implementation Notes

  • Threading Constraints: This service is designed to be used within the Unreal Engine's Behavior Tree system, which operates on a single thread.

  • Replication Requirements: No replication is required for this service as it operates locally within the game instance.

  • Memory Lifetime Management: The service does not manage any dynamic memory that requires special handling. It relies on the garbage collection of Unreal Engine to handle memory management.

  • Initialization Dependencies: This service depends on the ULimenAttributeBase class and the LimenCoreStatics blueprint library for its functionality. Ensure these dependencies are properly set up in your project.

22 May 2026