Widget Variable Counter
How to add to number every time another actor of class is destroyed by character's collision? I.E. starts at 0, when 5 actors are destroyed, number displays int 5
asked Nov 02 '15 at 02:14 PM in Blueprint Scripting
I recommend you to setup a blueprint interface that will contain a function like OnItemDestroyedByCharacterCollision, make your HUD inherit from this interface and act on the widget to set the correct value, and call the interface function from where you want.
Or, set this number anywhere else (in your custom game mode for example), and make the widget 'listen' the game mode variable using a binding on your counter.
answered Nov 02 '15 at 02:29 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here