Reseting DoOnce to use again with same Input

Can DoOnce somehow reset the widget only when i close it?

You can add a link to reset it to the same functionality of the close button on click, either use a custom event to fire the reset or make a link directly to the reset using a sequence.

I dont have so much knowledge to fully understand that sry

For the “T” create a custom event by right-clicking in the event graph and typing “custom event” and you will see this in the search:

128244-addcustomevent.png

Once you create the custom event node give it a name, in this example I called it “ResetDoOnceForWidget” and connect it to the reset of the DoOnce like this:

Then compile and close your characterBP (I’m guessing this is in your characterBP). Now open your widget BP and go to the logic for the close button on clicked and call the custom event from your character like this:

In this example I assumed the “T” logic is in your characterBP so instead of constantly casting to the characterBP I set it to save as a variable when the widget is constructed and then using the variable of the stored playerBP called the custom event.

1 Like

Awesome , thanks :slight_smile: I made the custom event in my characterBP and called it in my widget close logic .

That helped me a lot too!