UOpenDoor
Overview
UOpenDoor is a Behavior Tree task node designed to open a door. It inherits from UBTTaskNode and utilizes the Blackboard system to retrieve the door actor. The node checks if the door is already open before attempting to open it, ensuring that the action is not redundant.
Properties
Type | Name | Access | Description |
|---|---|---|---|
FBlackboardKeySelector | DoorActor | EditAnywhere | A selector for the Blackboard key that holds the reference to the door actor. |
Functions
Return Type | Signature | Description |
|---|---|---|
EBTNodeResult::Type | ExecuteTask(UBehaviorTreeComponent& OwnerComp, uint8* NodeMemory) override | Executes the task logic to open the door. Returns |
Usage & Implementation Notes
Threading Constraints: This node should be executed on the game thread as it interacts with Unreal Engine's runtime systems.
Replication Requirements: None. This node operates within a single client or server environment and does not require replication.
Memory Lifetime Management: The door actor reference is retrieved from the Blackboard, which manages its lifetime. Ensure that the door actor exists for the duration of the task execution.
Initialization Dependencies: The
DoorActorproperty must be set in the Behavior Tree editor to specify the key that holds the door actor reference.