Hit Counter

Hey guys, i have a little issue with my code, i want to increase the counter with a step of one everytime the firstpersonProjectile hit my asset but instead of increase +1 with one shot he increase at infinite.
I let the code as image, if someone have any idea.

You use a while loop.

The code runs until the condition is met during the same frame.

The game itself is a loop. And if you just want to increase by one on component hit. Don’t use a loop. The code behind the event will run every time the component is hit.