From 4d214f98833c4ee0bdaa180fd04d372a93c3d8f7 Mon Sep 17 00:00:00 2001 From: baz Date: Thu, 8 Feb 2024 18:30:39 +0000 Subject: [PATCH] Create Clear Focus Task --- Source/Nakatomi/Tasks/BTTClearFocus.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Source/Nakatomi/Tasks/BTTClearFocus.cpp b/Source/Nakatomi/Tasks/BTTClearFocus.cpp index 19a75c2..16239b5 100644 --- a/Source/Nakatomi/Tasks/BTTClearFocus.cpp +++ b/Source/Nakatomi/Tasks/BTTClearFocus.cpp @@ -9,6 +9,5 @@ EBTNodeResult::Type UBTTClearFocus::ExecuteTask(UBehaviorTreeComponent& owner, u { auto enemyController = Cast(owner.GetAIOwner()); enemyController->ClearFocus(EAIFocusPriority::Default); - enemyController->SetFocus(); return EBTNodeResult::Succeeded; }