Fallout 3 Pip-Boy light and inventory in BP's

Hey Guys i want to implement into my game the functionality of a pipboy from fallout 3. So if you press short the tab key it opens the inventory and if you press it longer (2 seconds) it enables the light

The current state is the light thing is working but it would also open the inventory. so it triggers both end events

I hope you awesome guys can help me this time

take everything after the EvenTick and move it to Tab key Released branch instead.

since you are not using tick, you can get rid of the doOnce nodes.

since you want to perform an action on release, based on the time the key was held down, you may need a different approach, since the keyHelddown timer will get reset to 0 when the key is released.

so, on pressed, GetGameTimeInSeconds, and use it to set a float called HoldStartTime. then when you release, to get the length of time it was held down, you can subtract HoldStartTime from GetGameTimeInSeconds, then check if that result is above 2, to decide what to do.

would it be possible for you to show it in blueprints? i would really appreciate this

okay nevermind my last comment i got it