Input Action that increments its triggering

Hello,

Currently, I’d like my IA_Back to be triggered only once and to execute this line of code in my Widget Blueprint (WB) Pause menu.

Unfortunately, despite having tried the various outputs of my EnhancedInputAction AI_Back, such as “Started”, “Ongoing”, etc., I can’t get it to work. Its triggering increments as the WB is removed from the parent and context mappings switch between IMC_Default and IMC_UI.

Check on the Top Left Corner of the Print String.

Thank you very much for your help!

Tried using the DoOnce node ?
image_2023-11-29_122025309

1 Like

Could be a thing thanks, but it would not be efficient, it’s like slapping a patch on a tire without removing the nail. I need to fix the problem at the source to prevent other bugs in the long term if I need to implement other triggers and input. Thank you though!

Hey @Speed60580

You could use the Completed pin of your input action and you could also try to execute your code after you check if your pause menu / widget is visible.

enhanced input has a build in trigger once, but started or completed should also work