[SOLVED] Trigger Once not working

so this is the code i have for opening and closing the inventory menu, and i want so that it only triggers once upon pressing the t key, but if you keep holding it the menu keeps opening and closing on intervals of the timer i set (0.2 seconds, the menu cooldown). Is there a way to make so that, without using the “key released” condition (it’s not as responsive), the menu only opens/closes when you press the key once?

Nevermind, just fixed it by moving trigger once above the timer event.

I know you fixed it already but
I would suggest using toggle boolean variable
For doing 2 different things with 1 key/button

damn you’re right, i forget that is a thing, thanks!

1 Like