Hello, I want a button to open and close an inventory. As far as I know this setup should work so that pressing my input action key only fires once. However if I hold the key down for just a moment it opens and closes my inventory in a flash. I’ve added a print string to confirm my button press is firing twice. This is frustrating as this works perfectly fine on my other project. What am I missing?
Thanks
Jack L
Hey @Jack_W_Lewis how are you?
I’ve been testing this and I couldn’t reproduce the issue. It would be great if you could share the rest of the blueprint with me so I can better evaluate the issue.
I would also like to check you Input Action settings as well as your Input Mapping Context.
It looks like your are calling the input in more than one place. But I’d like to test it.
I’ll be waiting for your answer!
Hello, thanks for taking a look. Sorry for my late response. I’ve added screenshots of my inputs.
Hello again @Jack_W_Lewis
I can see you issue now! As you can see in the image below, you have a trigger added to your “i” key, which is set to none, which is probably breaking the behavior!
You should change it to “Pressed” or eliminate it, as it is not needed.
Please, test this solution and let me know if it worked!
Hey! So unfortunately that hasn’t worked. I used to have a Pressed trigger there but the same issue was happening so I just removed it earlier. But even removing that the issue still persists.
I think I found some else with this issue in a forum post and it seems like it’s a bug on the engine?
That is really weird!
Where are you using the Input Action? In your Character or in your Player Controller? Are you calling that input action anywhere else?
Are you adding a second IMC that also includes that input action anywhere else?