# Only able to interact with a chest when the player is in front of it

**URL:** <https://forums.unrealengine.com/t/only-able-to-interact-with-a-chest-when-the-player-is-in-front-of-it/2695996>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [January 30, 2026, 12:54pm UTC](https://forums.unrealengine.com/t/only-able-to-interact-with-a-chest-when-the-player-is-in-front-of-it/2695996 "2026-01-30T12:54:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [January 30, 2026, 12:54pm UTC](https://forums.unrealengine.com/t/only-able-to-interact-with-a-chest-when-the-player-is-in-front-of-it/2695996/1 "2026-01-30T12:54:49Z")

</div>

Hi!

I want to add a chest and allow the player open it only when it is in front of it.

 ![imagen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/1/7/4175d3e8f7e134c7d9e23f359e31c0c0ff64663b.jpeg)

How can I do it?

With Raycast?

Thank you!

---

<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:** [January 30, 2026, 12:59pm UTC](https://forums.unrealengine.com/t/only-able-to-interact-with-a-chest-when-the-player-is-in-front-of-it/2695996/2 "2026-01-30T12:59:34Z")

</div>

Two main ways

1 Overlap volume on the chest. When the player overlaps, the chest enables input, and the player can interact

2 Raytrace and an interface. The player fires a ray at the chest and says ‘I’m interacting with you’

---

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [January 30, 2026, 1:00pm UTC](https://forums.unrealengine.com/t/only-able-to-interact-with-a-chest-when-the-player-is-in-front-of-it/2695996/3 "2026-01-30T13:00:49Z")

</div>

> [@ClockworkOcean](#):
>
> 2 Raytrace and an interface. The player fires a ray at the chest and says ‘I’m interacting with you’

I like this one. I have found this to know how to do it: [Using a Single Line Trace (Raycast) by Channel in Unreal Engine | Unreal Engine 5.7 Documentation | Epic Developer Community](https://dev.epicgames.com/documentation/en-us/unreal-engine/using-a-single-line-trace-raycast-by-channel-in-unreal-engine)

Thanks!

---

<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:** [January 30, 2026, 1:02pm UTC](https://forums.unrealengine.com/t/only-able-to-interact-with-a-chest-when-the-player-is-in-front-of-it/2695996/4 "2026-01-30T13:02:31Z")

</div>

Ray is better. Trouble with the overlap method, is you can also interact with the object using your butt 🤣

---

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [January 31, 2026, 10:19pm UTC](https://forums.unrealengine.com/t/only-able-to-interact-with-a-chest-when-the-player-is-in-front-of-it/2695996/6 "2026-01-31T22:19:11Z")

</div>

I’ve done this:

 ![imagen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/5/1/d517dd39442df0550dd7212cff509c9b3ae823d9.jpeg)

But I can interact with the chest from all of its four sides.

How can I do it only when the player is in front of it?

Thank you!

---

<div class="post-metadata">

**Author:** ![DonBusso](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DonBusso](https://forums.unrealengine.com/u/DonBusso)\
**Post date:** [February 1, 2026, 1:31am UTC](https://forums.unrealengine.com/t/only-able-to-interact-with-a-chest-when-the-player-is-in-front-of-it/2695996/7 "2026-02-01T01:31:15Z")

</div>

Hello,

Something like this should do the trick.

You can adjust the value on == if required, but I found this value good enough, so you can also open a chest when looking at it from an angle.

Important: Make sure your chest meshes are rotated properly. In order to double check which way is forward, select the root of your chest and add arrow component, whichever way it’s pointing, that’s forward direction. For testing, I would also uncheck “hidden in game” on arrow component.

 ![Screenshot 2026-02-01 012555](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/9/b/e9ba19130643db6fc1bc6dbeb60dfc9936991922.png)
