Merge pull request #26 from Games-Academy-Student-Work-22-23/Delay-On-Run

Added Delay On Escape From Combat
This commit is contained in:
Philip W 2023-04-21 15:34:45 +01:00 committed by GitHub Enterprise
commit 55ec487cde
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();
EnemyBlackboard->SetValueAsBool("IsInCombat", false);
EnemyBlackboard->SetValueAsBool("WasInCombat", true);
EndCombat();
}