How to add a scoring system using BP?

What i’m trying to accomplish is every time to destroy a mesh it will add one point to the score and the score text HUD will show at the top of the screen in-game. How do i make a BP like that or is there tutorials for this? Here is my BP for how the player destroys the mesh, it’s a simple BP.

Maybe it:

P.S.: Excuse me for my bad English=)

Sorry that dosn’t help because i have a actor witch spawns meshs randomley in the level. I don’t have already in game actors or meshes in the game before starting.

Create a branch coming out from the destroy actor , from the true branch add a do once , When the condition is true add 1 to you’re score . Then when the bool is false do nothing and reset the do once

Add one to what though. There will be no text or HUD on the screen showing the score. The only thing it will do is add one to an interger in the BPs when the game starts running

You need score on the amount of killings?

PS: Excuse me for my bad English.

That is all the hud needs. Inside you’re hud/ widget you have the variable score as an int or whatever you like. You then display this on the screen using add to view port etc.

Then when the actor is destroyed by clicking on it as you have described you simply cast to the hud/ widget and add 1 or whatever value you want to the score.

EniGmaa, what he wants to do? I don’t understand him=)

PS:Excuse me for my bad English=)

He want to display a score when the enemy/ AI is killed .

Yes but that’s what I don’t know how to do. How do I display the HUD using view port or how to cast it to the widget and display/ add one to the score in game. That’s what I don’t know how to do

Not that hard. When the actor is destroyed like showed in my BP thought onTouchInput. It add one to the score and the score will show in the game screen.

When you touch to enemy?

PS:Excuse me for my bad English=)