Added Delay On Escape From Combat

This commit is contained in:
Philip W 2023-04-21 15:32:41 +01:00
parent 2987ac3bb1
commit 8342865f74
4 changed files with 8 additions and 4 deletions

BIN
Content/BlueprintAI/AI/BB_Bruh.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/BlueprintAI/AI/BTT_Set_WasInCombat.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/BlueprintAI/AI/BT_Bruh.uasset (Stored with Git LFS)

Binary file not shown.

View File

@ -432,6 +432,7 @@ void ATurnBaseCombatV2::RunButtonOnClick()
UBlackboardComponent* EnemyBlackboard = Cast<AAIController>(EnemyActor->GetInstigatorController())->GetBlackboardComponent(); UBlackboardComponent* EnemyBlackboard = Cast<AAIController>(EnemyActor->GetInstigatorController())->GetBlackboardComponent();
EnemyBlackboard->SetValueAsBool("IsInCombat", false); EnemyBlackboard->SetValueAsBool("IsInCombat", false);
EnemyBlackboard->SetValueAsBool("WasInCombat", true);
EndCombat(); EndCombat();
} }