Update AI for Segregated Player Position Knowledge

This commit is contained in:
Philip W 2024-02-23 06:45:09 +00:00
parent aec345028d
commit 350a1d3b65
48 changed files with 51 additions and 49 deletions

Binary file not shown.

View File

@ -56,6 +56,8 @@ void AEnemyCharacter::SetAlertLevel(const int NewAlertLevel) const
void AEnemyCharacter::SetLocalAlertLevel(int NewAlertLevel) const void AEnemyCharacter::SetLocalAlertLevel(int NewAlertLevel) const
{ {
if (!IsValid(DelegatedControlHub)) return; if (!IsValid(DelegatedControlHub)) return;
if (!IsValid(GetController())) return;
Cast<AAIController>(GetController())->GetBlackboardComponent()->SetValueAsBool("IsInvestigating", true);
DelegatedControlHub->SetAlertLevel(NewAlertLevel); DelegatedControlHub->SetAlertLevel(NewAlertLevel);
} }