Hi, I’m new to Unreal engine 5 and have been following a guide on how to make a basic zombie fps game. I have implemented a hit scan and made the blueprint that should print point damage on the screen every time I shoot a zombie however it does not show on screen in the top left corner. The blueprint that I’m following shows zombie health going down by 20 each time the zombie is hit however mine does not.
Hi Gunsta,
My first thought is that the ‘EventPointDamage’ logic should be in the Zombie (The Hit Actor → Damaged Actor specified in apply point damage)
Do you see any print strings with this logic in the Zombie?
Welcome to the Forums.
What is the default value of health? Double check if it’s not the default 0. That would cause the branch to fail and not get to print string.
Set a break point (F9) on the event and see step by step what is going on.
And as mentioned by @Astrotronic if the shoot mechanic is in the player avatar then the damage in this blueprint is also regarding to the player health not the zombie.
The hit scan would call the damage event on the zombie (if that is the target) and that is where you need to implement the health reduction function too.
OMG you are a lifesaver. I copy/pasted the EventPointDamage logic into the zombie blueprint and it worked straight away. Thanks!