Is there any way to reset a FlipFlop?

So in my project i have Toolbar of 9+ tools/guns. And the way this Has to work is that when i use one of the Number keys (1 through 0) i can Select a gun/tool. And then when i Left Or Right mouse click(Within a given ) it will actually Equip the tool/gun. That much I’ve already gotten to work flawlessly.

But the problem is my “ToolGun” (Same kind from Gmod),It has two states i guess you could say. When i left click with it Once,it will trigger the First State. And when i click again it will trigger the Second State through the use of a simple FlipFlop.

But the problem comes when i wanna switch weapons While im only on the First State. I dont want to switch back and have the Second State fire when i left click again. I want it to be just like it is in Gmod where if i switch back to it after Triggering the First State,that it will Simply RESET the flipflop and trigger the First State again.

Is there anyway i can go about doing this? Or is there any way i can make my own FlipFlop with a permanent reset function until i switch back to that ToolGun?? Im currently screwing around with A manual Boolean Toggle but i just cant seem to make a permanent reset.

Mark your answered solved, so people know there is an answer :stuck_out_tongue:

Regards

Dammit. Nevermind,The fix to the problem was to simply SET the Boolean to either true or false(whichever one made it work ) whenever i switch TO that weapon. So When i press 1 to switch to the ToolGun,it Sets the Manual Boolean (FlipFlop/simple boolean toggle made from a branch and 2 Booleans,with itself as the argument) it will Force the Toggle to Reset.

1 Like

Weird,On the day i posted that,the comment didnt show up at all so i pretty much forgot about it . Thanks for the heads up!