Add reworked Worker Enemy AI #3

Closed
baz wants to merge 24 commits from worker-ai into master
2 changed files with 12 additions and 1 deletions
Showing only changes of commit dcd292cb48 - Show all commits

View File

@ -1,5 +1,13 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "Tasks/BTTClearFocus.h"
#include "../Tasks/BTTClearFocus.h"
#include "Nakatomi/EnemyAIController.h"
EBTNodeResult::Type UBTTClearFocus::ExecuteTask(UBehaviorTreeComponent& owner, uint8* memory)
{
auto enemyController = Cast<AEnemyAIController>(owner.GetAIOwner());
enemyController->ClearFocus(EAIFocusPriority::Default);
return EBTNodeResult::Succeeded;
}

View File

@ -13,5 +13,8 @@ UCLASS()
class NAKATOMI_API UBTTClearFocus : public UBTTaskNode
{
GENERATED_BODY()
public:
virtual EBTNodeResult::Type ExecuteTask(UBehaviorTreeComponent& owner, uint8* memory) override;
};