Variables 2d game

This doesn’t make sense to me.
First thing, never do stuff on an actor after destroying it.
Secondly, even if you are setting the variable before destroying, there is no fun of it. As you won’t be able to reference it and use the variable from other class.

So if you need this value, store it in some other class that you won’t destroy.

So im trying to count how many bullets hit my character but the number does not increase

344216-imagine-2021-07-15-212134.png

The first thing that jumps at me is that you destroy the actor first and then count stuff. I wouldn’t rely on this much. Destroyed actors will refuse to collaborate sooner rather than later.

Does it count correctly without the Destroy node?

But in my case if i dont destroy the actor the same projectile will count like 3 times cause it goes through my 2d character and count more times.