UE (4-27) FlipFlop Not Working

I am having flipflop to work normally it worked fine in UE4.26 and for a few times at the start for UE4.27.
flipflop A works fine but flipflop B does not. It just freezes. I made a button that unpauses it through a widget it works fine. it is just flipflop B that does not.

Thanks in advance

this one is the player

this is a widget

1 Like

Flip flops can get out of sync when you have external commands that trigger the same event. Best way to mitigate that is with a branch and a variable coming off your input action.

Like input action> “IsWidgetOpen” on true execute logic that removes it and and set the variable “IsWidgetOpen” to false. On false set it to true and execute logic that opens it. And any other logic that opens or closes it make sure you set that variable true or false accordingly…

That way you can open it or close it anywhere else and not worry about that flip flop getting out of sync. Flip flops are only good if there wont be any other commands trying to execute logic relevant to the flip flop logic outside of that flip flop.

1 Like

I think after you’re paused the game, you’ve frozen out the mouse unless you change the input mode:

But also, as @Humanasset says, flipflop is unreliable. If you have more than one route into the code ( which you probably will have as time goes on ), it will not work logically.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.