Create Clear Focus Task
This commit is contained in:
parent
03d5b80a0b
commit
4d214f9883
|
@ -9,6 +9,5 @@ EBTNodeResult::Type UBTTClearFocus::ExecuteTask(UBehaviorTreeComponent& owner, u
|
||||||
{
|
{
|
||||||
auto enemyController = Cast<AEnemyAIController>(owner.GetAIOwner());
|
auto enemyController = Cast<AEnemyAIController>(owner.GetAIOwner());
|
||||||
enemyController->ClearFocus(EAIFocusPriority::Default);
|
enemyController->ClearFocus(EAIFocusPriority::Default);
|
||||||
enemyController->SetFocus();
|
|
||||||
return EBTNodeResult::Succeeded;
|
return EBTNodeResult::Succeeded;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue