Cant Make Muzzle flash deactivate if not firing


As you can in the blue print I have a boolean “muzzle flash set to true” I set it to false after it activates the muzzle flash. I set it back to true once the trigger has been released. For some reason the muzzle flash continues to activate no matter what as you can see in this video. How do I make it stop?

So without seeing where this code is placed and where you have that muzzle flash component placed, i cant say for sure what the issue is but something i have going in my game is i have it always activated and i just call to set its visibilty to on and off. Give that a try and see if that does the trick.