|
Space Plunder
|
A behavior tree decorator that checks the distance between the owner and the target actor. More...
#include <BTD_DistanceTo.h>
Public Member Functions | |
| UBTD_DistanceTo () | |
Protected Member Functions | |
| virtual FString | GetStaticDescription () const override |
| virtual bool | CalculateRawConditionValue (UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory) const override |
| virtual void | TickNode (UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory, float DeltaSeconds) override |
Protected Attributes | |
| FBlackboardKeySelector | TargetActor |
| float | MaxDistance = 100.0f |
A behavior tree decorator that checks the distance between the owner and the target actor.
This decorator calculates the distance between the owner (controlled AI) and the target actor (specified in the blackboard). If the distance is less than or equal to the maximum distance, the condition is considered true. Otherwise, the condition is considered false.
| UBTD_DistanceTo::UBTD_DistanceTo | ( | ) |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
protected |
|
protected |