I’m trying to get my HUD to display the status of my target, through a reference saved in my Game Mode BP.
The way I go about it is, I first create a Character Reference variable in my game mode BP.
Then inside one of my enemy BP’s: When the enemy is clicked on i cast to the game mode BP and set the Character Reference to self.
When I then try and bind the health bar of the HUD to the health of the target i can’t get anything other than inherited values. If I instead of a Character Reference variable create a Enemy Reference variable (specific blueprint) I’m able to get all the different variables inside my enemy, but the problem comes when I have many different types of enemys since I can’t have a specific variable for each type of enemy BP.
Inside one of my Enemy classes:
The variable that does work: (inside the game mode BP)