# How to have a "Press "E" to Pickup Ammo" Message show up when looking at item

**URL:** <https://forums.unrealengine.com/t/how-to-have-a-press-e-to-pickup-ammo-message-show-up-when-looking-at-item/469083>\
**Category:** UI\
**Tags:** removal, remove-from-parent, unreal-engine, Widget, Blueprint, question\
**Created:** [August 2, 2020, 11:08pm UTC](https://forums.unrealengine.com/t/how-to-have-a-press-e-to-pickup-ammo-message-show-up-when-looking-at-item/469083 "2020-08-02T23:08:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SOLDIEROSCAR](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SOLDIEROSCAR](https://forums.unrealengine.com/u/SOLDIEROSCAR)\
**Post date:** [August 2, 2020, 11:08pm UTC](https://forums.unrealengine.com/t/how-to-have-a-press-e-to-pickup-ammo-message-show-up-when-looking-at-item/469083/1 "2020-08-02T23:08:20Z")

</div>

So im trying to get OnTick \> linetrace and on breakhit if it sees the object, I create a widget…

It shows up…

So how do i remove it?

---

<div class="post-metadata">

**Author:** ![mrteuy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mrteuy](https://forums.unrealengine.com/u/mrteuy)\
**Post date:** [August 2, 2020, 11:47pm UTC](https://forums.unrealengine.com/t/how-to-have-a-press-e-to-pickup-ammo-message-show-up-when-looking-at-item/469083/2 "2020-08-02T23:47:18Z")

</div>

Not sure on the question. Remove what? The linetrace or the message?

You may want to have a flag of sorts that determines if the message is shown, either on the player character or the item you’re looking at. Toggle the appropriate flag as needed.

In on the item, you can use an actor component, a tag, etc. to flag if the item is interactable, then query for the collision. You can alter trace/object channels as needed to allow/disallow the object to appear in a trace.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 3, 2020, 8:00am UTC](https://forums.unrealengine.com/t/how-to-have-a-press-e-to-pickup-ammo-message-show-up-when-looking-at-item/469083/3 "2020-08-03T08:00:56Z")

</div>

It’s no good putting the widget up just because there’s a blocking hit. It would be much better if the blocking hit implements your blueprint interface. That way you know the object is interactable:

 ![308988-implement.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/4/3/e4316d4ddea5f1a894da76d54ee260a60ccaa313.jpeg)

If the object is interactable, the player can call the widget. Write the widget so that without further input, it fades after a second or two and does ‘remove from parent’.
