Compare commits

...

2 Commits

Author SHA1 Message Date
baz 3b2301b270 Add include 2024-11-16 01:35:26 +00:00
baz 0c688fb86a Bind TakeDamage onto OnTakeAnyDamage 2024-11-16 01:35:21 +00:00
2 changed files with 3 additions and 0 deletions

View File

@ -106,4 +106,6 @@ void UHealthComponent::BeginPlay()
Super::BeginPlay();
ResetHealth();
GetOwner()->OnTakeAnyDamage.AddUniqueDynamic(this, &UHealthComponent::TakeDamage);
}

View File

@ -6,6 +6,7 @@
#include "Kismet/GameplayStatics.h"
#include "vampires/PlayerCharacter.h"
#include "Components/ProgressBar.h"
#include "vampires/HealthComponent.h"
#include "vampires/VampireCharacter.h"
void UHealthbarWidget::NativeConstruct()