Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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 time) 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.

Product Version: UE 4.18
more ▼

asked Jan 04 '18 at 08:09 PM in Blueprint Scripting

avatar image

43 2 7 8

avatar image Narghile Jan 04 '18 at 09:09 PM

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



avatar image Benemii Jan 06 '18 at 10:30 AM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Dammit. Nevermind,The fix to the problem was to simply SET the Boolean to either true or false(whichever one made it work lol) 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. alt text

more ▼

answered Jan 04 '18 at 10:42 AM

avatar image

43 2 7 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question