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