UFindClosestDoor
Overview
UFindClosestDoor is a custom Behavior Tree task node designed to locate the nearest ALimenDoorBase actor within a specified range. It retrieves the AI controller's pawn, searches for interactable actors using a proximity interaction component, identifies the closest door, and stores it in the blackboard under a designated key.
Properties
Type | Name | Access | Description |
|---|---|---|---|
FBlackboardKeySelector | DoorActor | EditAnywhere | The key selector used to store the reference to the found door actor in the blackboard. |
Functions
Return Type | Signature | Description |
|---|---|---|
EBTNodeResult::Type | ExecuteTask(UBehaviorTreeComponent& OwnerComp, uint8* NodeMemory) override | Executes the task logic to find and store the closest door actor in the blackboard. Returns |
Usage & Implementation Notes
Threading Constraints: This task should be executed on the game thread as it interacts with Unreal Engine's runtime components.
Replication Requirements: Not applicable for this stateless utility node.
Memory Lifetime Management: The memory management is handled by the Behavior Tree system, which ensures proper lifecycle of the task and its associated data.
Initialization Dependencies: This task depends on the presence of an
ULimenInteractionComponentwith a proximity interaction component attached to the AI's pawn.