Help me hide-show an object on two different keys

Hello,

In my game, I need to pick up items. I already made the system to pick the item up (pick on E, put on J)

I need the original item on the table to disappear on E and show again on J:

But right now, when I pick the item, nothing happens, and I never found out why,

Here are my blueprints. I’ve set up an Interact Item function, and wanted to add to the existing system the show-hide system.

I’ve been stuck on this for three days, so help would really be appreciated,

Thanks!!

I guess there is a problem with ref to the static mesh
Try IsValid node to check it

1 Like

Hey, I tried this:

And now, the item is hidden on E, but never shows up again on J: what’s the problem? The flip-flop maybe? Is there another way to solve this?

You missed the static mesh ref on the showItem case

Hey, I repaired it but It still isn’t working: maybe it has something to do with the flip flip not working? Like it never triggers the show item? I don’t know

Check it with print node

Something even weirder happens: it does noting on J key, but when I press E again, it shows. Like the toggle is done only on the E key, even thought I set it on J.

I found another way to solve it on only the E key, thank you:)

1 Like