When I unpause I shoot my weapon, and it's a serious problem

So here’s my deal, when I pause the game I put show mouse cursor. It works perfectly fine except that I need to click the screen in order to be able to click on the options on the screen. When I unpause is when things get really stupid, the mouse is still there so I click the screen to get rid of it and I shoot my gun. Now everything’s back to normal but still, I lost a bullet due to this. So my question is, how do I fix this so none of that happens. This image will explain better on what I mean.

Edit: Here’s a video to explain it better. - YouTube

It worked, thank you!

,

I think it’s something to do with your game mode not being set correctly. See the images below and let me know if you have any questions, the ends of the images are the nodes you are looking for.

Please mark the answer as correct to close it :slight_smile:

lol, I’ve been trying for hours. Can’t seem to find out how.
Edit: Never mind, I’m an idiot, the check mark was right there in front of my face, lol.