HUD Not displaying correct value?!
Hey, so I have been trying to make a score HUD that displays the Round you are on and the amount of kills you have had however it seems to just be giving me 0.
I have two variables in a blueprint called "zombiesAlive" and "zombiesforRound".
zombiesAlive - How many zombies are alive at the current time, is -1 when you kill one in blueprint BP_Enemy (Refrence from BP_Enemy to spawnVolume.
zombiesforRound - How many zombies should be spawned per round (roundNumber 10 (Round 1 10 = 10, so spawn 10 zombies).
So, I tried to make my widget display the value's of these integers/variable's however that does not work out. It just says the round number and amount of kills = 0.
There are no error's however. In the image below you can see the spawnVolume blueprint reference.
Any help is appreciated.
asked Jun 14 '16 at 11:15 PM in Blueprint Scripting
Is your Spawn Blueprint 2 reference being set somewhere in this bp? If not that could be the reason for returning a 0 value. Otherwise there might be a hick up in this Spawn bp, the value is not being altered correctly. I was wondering, if this is a widget bp and you've made the Spawn bp reference editable, how are you selecting the bp in question in the editor?
Hope it helped :) good luck
answered Jun 15 '16 at 12:07 AM
Hi, so the PrintString is displayed correctly? If the binding function gets called, and the PrintString shows the correct value, did you check the size of the Textbox if the first digit might be cut off? If the PrintString does not get called at all then the binding might be broken somehow. Perhaps it helps if you remove the binding and the function and bind it again. I had the same issue as far as i remember. After some renamings I guess. I think rebinding solved it.
answered Jun 15 '16 at 12:11 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here