Limen Framework 0.1 Help

UBTService_GetActorLocation

Overview

UBTService_GetActorLocation is a behavior tree service that retrieves the location of an actor from the blackboard and stores it in another key. It inherits from UBTService. This service is useful for tasks that require dynamic positioning based on the current state of the environment or other actors.

Properties

Type

Name

Access

Description

FBlackboardKeySelector

OutLocation

EditAnywhere

The key where the actor's location will be stored.

FBlackboardKeySelector

Target

EditAnywhere

The key that contains the reference to the target actor whose location is to be retrieved.

Functions

Return Type

Signature

Description

void

OnSearchStart(FBehaviorTreeSearchData& SearchData)

Called when the behavior tree starts searching for this service.

void

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

Ticks the node and updates the blackboard with the target actor's location.

Usage & Implementation Notes

  • Threading Constraints: This service should be used in a single-threaded context as it interacts directly with the behavior tree component.

  • Replication Requirements: If this service is used in a networked environment, ensure that the keys involved are replicated properly to maintain consistency across clients and servers.

  • Memory Lifetime Management: The service does not manage any dynamic memory explicitly. Ensure that the keys OutLocation and Target are properly managed within the behavior tree.

  • Initialization Dependencies: This service assumes that the keys OutLocation and Target are already set up in the blackboard before it is used.

22 May 2026