When I press right mouse button my camera zooms my gun, so when I press it again I want it to zoom out instead of holding right mouse button to zoom in and out. I tried looking for an answer but couldn’t find any.
To do this you should use a “FlipFlop” node connected to the “Pressed” right mouse button zoom event.
Not sure how you have it set up in blueprints currently, but you will want to connect the Zoom In nodes to the “A” output, then the Zoom Out nodes to the “B” output.
With that in place pressing the right mouse button once will zoom in and stay that way until you right click again. A flip flop does exactly what it’s name suggests, alternates between two outputs when triggered.
Hope that helps!
Ohh so that was that easy xD , Thanks for the answer and for explaining it to me!