My Kill Count not updating :(

My Kill Count is not working. I followed the post “Kill count HUD woes ;/” to do the same setup. The number displays on my screen but does not count up after I kill an enemy. I am wondering if it is my enemy blue print not working right?!?!

I Created Blueprint Interface “HUDState” with out value Int “Score”

You have to make this variable in your GameMode or your Character Blueprint and change its value there.
Let me know if it helps.

Thanks

AB

Hi AB,

Do you mean the “Kill Score (Int)” ?

No he means when you kill an enemy, before its respawned you have to cast getplayercharacter → cast(yourcharacterbpname) → get killcount → incrementint or set + 1. tomato tomato.

Instead of calling your Inc Score, you can directly set your kill count.

That worked! Thanks AB!

Great to hear that. You can accept it as answer for future reference.