Implemented Spotted Functionality for Stealth Area Checkpoint

This commit is contained in:
Rafal Swierczek 2024-05-03 02:11:08 +01:00
parent 9a80958e0e
commit e8a77d9293
6 changed files with 11 additions and 8 deletions

Binary file not shown.

View File

@ -70,8 +70,8 @@ void AEnemyCharacter::SetHostilityLevel(const EHostilityLevel NewHostilityLevel)
if (NewHostilityLevel == EHostilityLevel::Hostile) if (NewHostilityLevel == EHostilityLevel::Hostile)
{ {
if (!IsValid(GetController())) return; if (!IsValid(GetController())) return;
BecameHostile.Broadcast();
Cast<AAIController>(GetController())->GetBlackboardComponent()->SetValueAsBool("IsHostile", true); Cast<AAIController>(GetController())->GetBlackboardComponent()->SetValueAsBool("IsHostile", true);
BecameHostile.Broadcast();
} }
HostilityLevel = NewHostilityLevel; HostilityLevel = NewHostilityLevel;
} }