diff --git a/Source/vampires/HealthComponent.cpp b/Source/vampires/HealthComponent.cpp index 7dca1a1..e916f81 100644 --- a/Source/vampires/HealthComponent.cpp +++ b/Source/vampires/HealthComponent.cpp @@ -106,4 +106,6 @@ void UHealthComponent::BeginPlay() Super::BeginPlay(); ResetHealth(); + + GetOwner()->OnTakeAnyDamage.AddUniqueDynamic(this, &UHealthComponent::TakeDamage); }