Added max health and current health to component
take damage function created. need to decide how damage and health is managed
This commit is contained in:
@@ -9,11 +9,11 @@ UDDIHealth::UDDIHealth()
|
||||
// Set this component to be initialized when the game starts, and to be ticked every frame. You can turn these features
|
||||
// off to improve performance if you don't need them.
|
||||
PrimaryComponentTick.bCanEverTick = true;
|
||||
|
||||
// ...
|
||||
MaxHealth = 100;
|
||||
CurrentHealth = 100;
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Called when the game starts
|
||||
void UDDIHealth::BeginPlay()
|
||||
{
|
||||
@@ -32,3 +32,7 @@ void UDDIHealth::TickComponent(float DeltaTime, ELevelTick TickType, FActorCompo
|
||||
// ...
|
||||
}
|
||||
|
||||
// Called to cause damage
|
||||
void UDDIHealth::TakeDamage(UDamageType* DamageType)
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user