# Sound attached to a moving actor never plays

**URL:** <https://forums.unrealengine.com/t/sound-attached-to-a-moving-actor-never-plays/2018669>\
**Category:** Programming & Scripting\
**Tags:** play-sound-at-locati, unreal-engine, Blueprint, question\
**Created:** [September 13, 2024, 5:17am UTC](https://forums.unrealengine.com/t/sound-attached-to-a-moving-actor-never-plays/2018669 "2024-09-13T05:17:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![CoDrift1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CoDrift1](https://forums.unrealengine.com/u/CoDrift1)\
**Post date:** [September 13, 2024, 5:17am UTC](https://forums.unrealengine.com/t/sound-attached-to-a-moving-actor-never-plays/2018669/1 "2024-09-13T05:17:28Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/1/ad164a15309de2da0f585885a14f0caf7ae1b6ff.png)

Ok, so I got this scenario where I am spawning a plane randomly (50000-70000 units away from the player). It is given a direction and a velocity towards the player position It only moves across XY plane and does not head straight towards the player, only passed above it. Finally, it is given a height of 5000 units.

Now, I am attaching a sound to the plane but offsetting it by -5000 Z. So that the sound attenuates correctly. I have tried attaching the sound in the blueprint after spawning the actor, like this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/6/c/96c60c4782916492371c718df957f9d0175f525b.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/2/a/82a31c88eda6bfa1f31dc70e4a4a95583a270f18.png)

And I have tried fixing the sound to the plane in the viewport of the actor class itself, like this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/9/3/09375b5ffb1943b213ac8edaa360f6f4f2d86c1a.jpeg)

The sound plays fine when attenuation is off or funnily, when the attenuation outer radius is cranked to absurdly high levels.

And to confirm that the sound actually plays near the player, I have paused the level when the plane is spawned and reached right above the player and you can see the attenuation circles surrounding the player:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/b/eab066d486ba54f0f121f50bbbd947dfd81726fb.jpeg)

---

<div class="post-metadata">

**Author:** ![CoDrift1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CoDrift1](https://forums.unrealengine.com/u/CoDrift1)\
**Post date:** [September 14, 2024, 1:20am UTC](https://forums.unrealengine.com/t/sound-attached-to-a-moving-actor-never-plays/2018669/2 "2024-09-14T01:20:48Z")

</div>

🥲 Anyone?

---

<div class="post-metadata">

**Author:** ![PresumptivePanda](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/presumptivepanda/32/1194593_2.png) [@PresumptivePanda](https://forums.unrealengine.com/u/PresumptivePanda)\
**Post date:** [September 17, 2024, 10:55pm UTC](https://forums.unrealengine.com/t/sound-attached-to-a-moving-actor-never-plays/2018669/3 "2024-09-17T22:55:49Z")

</div>

This topic has been moved from **International** to **Programming & Scripting**.

When posting, please review the categories to ensure your topic is posted in the most relevant space. Hopefully, this category change helps you to get the answers you’re looking for 🙂

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [September 18, 2024, 8:24am UTC](https://forums.unrealengine.com/t/sound-attached-to-a-moving-actor-never-plays/2018669/4 "2024-09-18T08:24:44Z")

</div>

Hey there @CoDrift1! This is one of those ideas that gets easier to fake instead of simulate. The sound is likely being culled when attached to the plane, as it’s root is far outside of the range where it should matter. When it comes to larger distances like this, you start to run into limitations. There’s a number of ways to get around this, but before going into them I can probably focus in on your use case. Is the plane audio just ambience or is it part of a game mechanic? (The sub-question is how accurate do you require this to be?)

---

<div class="post-metadata">

**Author:** ![Leomerya12](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/leomerya12/32/926321_2.png) [@Leomerya12](https://forums.unrealengine.com/u/Leomerya12)\
**Post date:** [September 18, 2024, 2:41pm UTC](https://forums.unrealengine.com/t/sound-attached-to-a-moving-actor-never-plays/2018669/5 "2024-09-18T14:41:58Z")

</div>

If CoDrift doesn’t respond, I may hijack your support, because I have a similar issue with a train system I created. If the player is near the train already, no problem, but if the player is far away from the train, and then the train and the player get close, the noise the train is supposed to be making as it moves through the level (grinding rail sounds, engine sounds, etc.) is culled.

For now, I’ve ignored it, but if there are any tips?

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [September 19, 2024, 4:00am UTC](https://forums.unrealengine.com/t/sound-attached-to-a-moving-actor-never-plays/2018669/6 "2024-09-19T04:00:22Z")

</div>

Hey there @Leomerya12! For a client, they wanted positional audio for objects entering an area a large distance away for gameplay purposes. I am by no means well versed in audio, but what I did is I created a new class type to do long range audio, where it basically spawned an object under the root of the player, then offset the audio source 100 units forward, then rotated that towards the actor that spawned it. Then taking a measure of distance setting some audio settings. Unfortunately I don’t have access to that project any longer to get a good example without rewriting it. This was back in 4.27 as well, so there may be better options for global audio.

---

<div class="post-metadata">

**Author:** ![doctorpepperdan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@doctorpepperdan](https://forums.unrealengine.com/u/doctorpepperdan)\
**Post date:** [September 19, 2024, 7:15am UTC](https://forums.unrealengine.com/t/sound-attached-to-a-moving-actor-never-plays/2018669/7 "2024-09-19T07:15:13Z")

</div>

Try adjusting the fall of distance?

---

<div class="post-metadata">

**Author:** ![Leomerya12](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/leomerya12/32/926321_2.png) [@Leomerya12](https://forums.unrealengine.com/u/Leomerya12)\
**Post date:** [September 19, 2024, 12:41pm UTC](https://forums.unrealengine.com/t/sound-attached-to-a-moving-actor-never-plays/2018669/8 "2024-09-19T12:41:03Z")

</div>

> [@doctorpepperdan](#):
>
> Try adjusting the fall of distance?

Correct, in that that’s what I’m doing now, but the level is quite large, and if my CPU doesn’t need to process sounds happening on the other side of the map, I’d rather avoid it, even if the impact is minimal.

> [@SupportiveEntity](#):
>
> where it basically spawned an object under the root of the player

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/0/b/60b02cfccdbb311d8d047c23589f96171101dc01.gif)  
Brilliant idea!

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [September 20, 2024, 5:19am UTC](https://forums.unrealengine.com/t/sound-attached-to-a-moving-actor-never-plays/2018669/9 "2024-09-20T05:19:58Z")

</div>

It’s a fun little trick I to avoid culling, I had to use when working on a space based game where many things are “To Scale Simulation” and faking most systems was the only way anything was feasible.
