I need help making an object dissapear when a player is looking at and pressing the keyboard input "E".

So I want to in the long run do the following:

I want to, when a player looks at and presses the “E” key pickup onto their character hand a mop. For now, until I can figure out skeleton sockets and that, I am just wanting to simply delete the actor. So far this is what I have. For some reason, it registers the player looking/colliding with the prop. But it will not register pressing E, or any key for that matter.

Please help me understand what I am doing wrong, and I can explain further if anything doesn’t make sense.



Your E need to get plugged in here

image

then do the cast on the other side of the trace.

Also try a print string on the E, is it firing? Did you enable input?

So I did what you suggested and it doesn’t work. It still registers me being in the collision box, but the E key does not register.

As I said I want it to only delete actor IF the E key is pressed when the player is ONLY INSIDE the collision box.

Here is the updated blueprint as well as the key input as you asked.

I am really stuck, and since I am new to this appreciate your help.

There’s nothing in your code here about overlap, so I can’t really say anything about that.

The input mapping you’re showing does nothing unless you use the event ‘Interact’ in your blueprint, you’re still using E.

If the print string doesn’t fire when you press E, you have not enable input:

I’d recommend you watch some of the millions of vids on youtube about this exact topic, there is no shortage :slight_smile: