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.