Enable/disable shooting in FPS

It’s really not that hard. I would probably just use a boolean variable. When I do the input action to shoot I first set this variable to true and when its true I do my shooting. When it’s false I do nothing. Then in the logic where you don’t want the shooting to occur just set the bool value to false. That would disable the shooting. Then when you want the player to be able to shoot again set the bool value back to true.