// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "BehaviorTree/BTTaskNode.h" #include "TaskGetLocationNearLocation.generated.h" /** * */ UCLASS() class NAKATOMI_API UTaskGetLocationNearLocation : public UBTTaskNode { GENERATED_BODY() public: UPROPERTY(EditAnywhere, Category = "Options", Meta = (AllowPrivateAccess = "true", DisplayName = "Target Location Key")) FBlackboardKeySelector TargetLocationKey; UPROPERTY(EditAnywhere, Category = "Options", Meta = (AllowPrivateAccess = "true", DisplayName = "Source Location Key")) FBlackboardKeySelector SourceLocationKey; UPROPERTY(EditAnywhere, Category = "Options", Meta = (AllowPrivateAccess = "true", DisplayName = "Maximum Distance")) float MaximumDistance = 500.0f; UPROPERTY(EditAnywhere, Category = "Options", Meta = (AllowPrivateAccess = "true", DisplayName = "Minimum Distance")) double MinimumDistance = 0.0f; public: virtual EBTNodeResult::Type ExecuteTask(UBehaviorTreeComponent& owner, uint8* memory) override; };