Compare commits
2 Commits
95a7b28db2
...
d6770f8d4b
Author | SHA1 | Date | |
---|---|---|---|
d6770f8d4b | |||
baf54dd6f5 |
BIN
Content/Weapons/Shotgun/Shotgun.uasset
(Stored with Git LFS)
BIN
Content/Weapons/Shotgun/Shotgun.uasset
(Stored with Git LFS)
Binary file not shown.
@ -142,7 +142,9 @@ void AEnemyCharacter::OnDamaged()
|
||||
{
|
||||
Super::OnDamaged();
|
||||
|
||||
AEnemyAIController* controller = Cast<AEnemyAIController>(GetController());
|
||||
if (AEnemyAIController* controller = Cast<AEnemyAIController>(GetController()))
|
||||
{
|
||||
controller->GetBlackboardComponent()->SetValueAsFloat("CurrentHealth", GetHealthComponent()->GetCurrentHealth());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -274,6 +274,8 @@ void ANakatomiCharacter::PlayOnFireAnimations()
|
||||
}
|
||||
|
||||
void ANakatomiCharacter::OnDamaged()
|
||||
{
|
||||
if (OnDamagedHitAnimMontages.Num() > 0)
|
||||
{
|
||||
int32 randomAnimMontage = FMath::RandRange(0,OnDamagedHitAnimMontages.Num()-1);
|
||||
|
||||
@ -283,6 +285,7 @@ void ANakatomiCharacter::OnDamaged()
|
||||
// PlayAnimMontage(OnDamagedHitAnimMontages[randomAnimMontage]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ANakatomiCharacter::OnDeath()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user