Iam unable to modify health bar for turrets

I tried to add health bar for turrets by creating a function using UFUNCTION(BlueprintPure) which returns the health value from HealthComponent class, but iam unable to get the (health/DefaultHealth) value from healthComponent and cast it to PawnTurret.

MY health bar gets added as an widget to turrets but the health values are not updating

This is how the output currently look like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms