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"

Flip Flop only outputting A?

Hey guys I've got a flip/flop for alternating between setting a variable of mine, but despite everything I try, it only outputs A and never B. I set it up according to the documentation, so I'm at a loss atm. Oh and in case it matters, I'm using it in the Gamemode blueprint. I've also tried using a branch with the Is A true/false, but still no dice.

Anyone have a clue as to why it's not behaving properly? Here's a pic of it if you guys need that to help me out here: alt text

Product Version: Not Selected
more ▼

asked Jul 15 '14 at 09:36 PM in Blueprint Scripting

avatar image

64 10 14 15

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

1 answer: sort voted first

Hey Wisdomcube2000,

The FlipFlop node should switch from A to B each time it is used, but if this is inside a function that is called different times it might be resetting each time the function is called. Would you mind expanding the image you showed us so we can see how the FlipFlop is being used? Any additional information could help us reproduce the issue so we can help you figure out what's going on. Thanks!

more ▼

answered Jul 15 '14 at 10:33 PM

avatar image Wisdomcube2000 Jul 15 '14 at 10:56 PM

Yeah this is within a function. It resetting actually makes sense since it only seems to call A. I didn't realize it worked differently there.

Is there some way I can get it to work still or should I go about this in a different way?

avatar image Ben Halliday STAFF Jul 15 '14 at 10:59 PM

Functions only fire the one time they are called, and then reset, so that's probably the problem. I would use a Branch instead of a FlipFlop and pass it a Bool variable, which you can set outside the function each time it is processed and pass it to the function when it is called.

avatar image Wisdomcube2000 Jul 15 '14 at 11:06 PM

Hey thanks for the info, I'll try that and see how it goes.

Btw The category setting for functions doesn't seem to do anything atm. Is that a bug?

avatar image Ben Halliday STAFF Jul 17 '14 at 06:13 PM

The Category helps you organize your Functions when you're searching for them in an EventGraph. If you have a custom Function with a Category listed, and then right-click and search for that Function, it will appear under that Category heading. If you have multiple Functions with similar purposes, you can collect them in a Category for easier searching, both within their Blueprint and from other Blueprints when casting. It's just an organizational tool =)

avatar image Wisdomcube2000 Jul 18 '14 at 04:01 PM

Can I offer a suggestion then? Can you make it so that the category you set it to groups it on the left similarly to how it groups the variables together?

In my player character for example, I have quite a few different functions that I'd like to organize into groups (so I can hide the ones I'm not using/looking for atm) instead of simply having an unorganized wall of them on the left. You already do this for the variables so I hope this isn't too much to ask :)

But yeah thanks for the info though.

avatar image Ben Halliday STAFF Jul 18 '14 at 04:21 PM

I can enter a feature request for that. Seems useful. Thanks!

avatar image Wisdomcube2000 Jul 19 '14 at 12:46 AM

Thanks for the reply, hope it helps/makes it in.

Also really have to say thankyou for helping out the way you guys do here. I love it lol :)

avatar image Ben Halliday STAFF Jul 21 '14 at 06:26 PM

Looks like this has already been updated internally, and should appear in the 4.4 update. Function Categories will work exactly like variable categories.

avatar image Wisdomcube2000 Jul 16 '14 at 12:43 AM

Took a bit more work than I initially thought, but thanks to your input I got it working eventually. Thanks Ben :)

(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