Variable not changing glitch?

Im trying to make it so when I touch a certain object it changes a variable. In the picture below it show when the actor is hit it will run the custom event incrementscore and should change the variable to 6 but it doesn’t. Only when hitting E will the variable actually change. I tried adding other things like on destroyed, which all show that it ran but when it gets to the set the variable to 6 it doesn’t. It ONLY changes when I hit E. Nothing seems to want to change the variable other than when I hit E. What is going on?

Hello @Boi_Gbird, “Simulation Generates Hit Events” on your component is set to true?

image

Also, your blueprint is a little bit messy. Avoid crossing strings, in your case you’re repeating the same action more than once each tick!

I can’t really understand what’s your intent with the “DestroyActor” node tho.

I was trying different things to trigger the setting of the variable, but the only thing that actually changed it was when I hit the E key. Thats why I tried using on destoryed,I just kept trying different things to see what would do it, but even through the on destoryed was triggered when it got to the setting of the variable It did nothing. Only when it came from the E key did the variable actually change.

btw the on actor hit node is actually getting triggered and in the debug mode I can see the lines light up all the way through the set variable node but it just doesn’t set it even though it does it.