Only show health bar if the player is close to the enemy and can see it?

I prefer the enemy because if you have multiple enemy you have to set each different class on the player blueprint. While on the enemy there is only one player to look for.

Or you can have it on player and search for every child enemy blueprint. Which works the same. I just prefer the enemy don’t have to cast anything.