# How do I give a physically opened door opening and closing sounds?

**URL:** <https://forums.unrealengine.com/t/how-do-i-give-a-physically-opened-door-opening-and-closing-sounds/453319>\
**Category:** World Creation\
**Tags:** physics-constraints, doors, unreal-engine, Physics, UE4, Blueprint, question\
**Created:** [August 3, 2019, 10:41pm UTC](https://forums.unrealengine.com/t/how-do-i-give-a-physically-opened-door-opening-and-closing-sounds/453319 "2019-08-03T22:41:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Silveronetwo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Silveronetwo](https://forums.unrealengine.com/u/Silveronetwo)\
**Post date:** [August 3, 2019, 10:41pm UTC](https://forums.unrealengine.com/t/how-do-i-give-a-physically-opened-door-opening-and-closing-sounds/453319/1 "2019-08-03T22:41:38Z")

</div>

So I have this door

 ![284073-bp-door.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/5/d05faf68af4d3a172ae7fb0cd1a5d61b740bb913.jpeg)

It’s just a simple door with a Box, Collision, and a 45\* Physics Constraint. When the player approaches this door they can click and drag to open it via a physics handle (think of it like Penumbra or Amnesia’s Doors), and that’s its basic functionality. The only problem with this, though, is that I have no idea how to give it opening / closing / dragging sounds. If this were a simple door that opened and closed with E, that’d be really easy, but it’s not.

---

<div class="post-metadata">

**Author:** ![DETERMINATOR20](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DETERMINATOR20](https://forums.unrealengine.com/u/DETERMINATOR20)\
**Post date:** [August 4, 2019, 3:41am UTC](https://forums.unrealengine.com/t/how-do-i-give-a-physically-opened-door-opening-and-closing-sounds/453319/2 "2019-08-04T03:41:15Z")

</div>

I kind of get what you’re saying. If I interpreted this correctly, you could have a 1-2 second sound that plays when the door’s rotation changes. Once the first sound plays, have a loop on another sound so it makes it sound like it first has the creaky part, then a more smooth sound. I can’t write up an example right now but this should work.

---

<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 4, 2019, 11:46am UTC](https://forums.unrealengine.com/t/how-do-i-give-a-physically-opened-door-opening-and-closing-sounds/453319/3 "2019-08-04T11:46:03Z")

</div>

I’ve had this problem also. Bascially, get a sound sample that’s long enough the have some variety in it, about 10-20 seconds ( make it loopable ). In the BP for the door, you need to check for door movement. When the door starts moving, you start playing the sound from a random point and only stop playing the sound when the door stops moving.

If the player starts moving the door again, you’ll be jumping into the sound at a different point, so it always sound authentic.

To check for movement, you’ll need something like a SetTimerByEvent which fires a custom event roughly every 10th of a second. This event can compare the door angle to it’s previous value, if it’s not the same, it continues playing the sound, otherwise stop.

Like this:

 ![284105-door.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/2/9a223450fdb277b1e689af2bb35e91b85a1529db.jpeg)

---

<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 4, 2019, 11:47am UTC](https://forums.unrealengine.com/t/how-do-i-give-a-physically-opened-door-opening-and-closing-sounds/453319/4 "2019-08-04T11:47:38Z")

</div>

and here with the random start time:

 ![284106-door2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/b/6/1b65ab8910af18092facd5b4fd65bb5732ffe6bc.jpeg)

---

<div class="post-metadata">

**Author:** ![Teyrham](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Teyrham](https://forums.unrealengine.com/u/Teyrham)\
**Post date:** [June 29, 2021, 7:58pm UTC](https://forums.unrealengine.com/t/how-do-i-give-a-physically-opened-door-opening-and-closing-sounds/453319/5 "2021-06-29T19:58:01Z")

</div>

My version. Again, not a perfect solution but i think it’s pretty good.

For some sound variety use random function in the cue file with additional samples.

 ![342784-zrzut-ekranu-2021-06-29-215309.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/3/7538bfbe799e31cf1dfaa038f9c01c50029055f7.png)
