Hi there,
so after adding the HealthComponent
to BP_PawnTank
and BP_PawnTurret
blueprints I was playing around with setting default MaxHealth
values of each individually. Basically I wanted to give the tank more Health
than the tower.
But I can’t set them individually, since as soon as the MaxHealth
value in one of the HealthComponents
is changed, it’s changed in the other blueprints HealthComponent
as well.
-
Did I miss something here from the lecture? Just rewatched it and if so, I missed it again.^^
-
After that I tried to inherit
BP_HealthComponent
for the Tank on another one for the Tower and add them respectivly so that I can setMaxHealth
individually but this also doesn’t work since UE tells me: “Cannot create a new Blueprint class based on HelathComponent.” -
If 1. and 2. are true which would be the way to give both BPs (Tank and Tower) individual
MaxHealth
. Inheriting from the C++HealthComponent
and add those childs instead? Or do I missunderstand the reusability of Components here?