Attenuation Overrides for sound cues not working

My map is randomly generated based on your selected menu settings so the map isn’t always one specific size. Because of this, for my ambient nature sounds the attenuation size and falloff distance settings need to be set dynamically.

I am having a heck of a time trying to figure out how to do that, and I thought I could do it in blueprints on begin play by an Add Audio Component, and Set Attenuation Overrides.

The problem is that when I change the settings in the Attenuation Overrides, nothing changes in game. All I need to change is the Attenuation Shape Extents and the Falloff Distance, but changing them doesn’t seem to make any difference.

Below is how I am adding the ambient noise cue and connecting that to my attenuation override.

If there is a better way to dynamically create these sounds and attenuation I’m all ears.

Hello Lowenfas, thank you for posting.

So far, you got a good idea on what you’re doing here. I would check the AddAudioComponent node and ensure: “Override Attenuation” is checked to ‘True’.

Another thing I would probably do a little different is change the falloff distance by getting the Attenuation Overrides and then check marking the Falloff Distance and other values so you can edit them. Then I would set it. The same could be done for any other values you want to change.

I hope this helps.

2 Likes

Duuuuude. Thats a huge step in the right direction but I’m still having an issue.

First let me say that thanks for pointing out that override checkbox, I’m not surprised my main issue was something that simple and dumb. And also the Set Members node is ridiculously better than what I was doing before.

The issue I’m currently having is that changing my settings in the Set Members=>Attenuation Overrides still doesn’t seem to make a difference. The only way to change the settings is from the Add Audio Component node itself in the attenuation(volume) tab.

Any ideas?

Hello Lowenfas, its great to hear back from you.

I took a look at what you need and I tinkered a bit.
Just like you, I turned off the Enable Volume Attenuation on the AddAudioComponent node.
You are absolutely correct, the setting doesn’t stick. It looks like it might be a chicken-before-the-egg kind of problem. A solution I managed to wrangle up is stopping the audio, applying the settings and then playing the audio.

I want to come up with something better but for now, this may assist you in finding a more solid solution.

I hope this helps, and I look forward to your reply.

2 Likes

It is unfortunate that I have to do some kind of workaround for this when it shouldn’t even be an issue. But, as far as I’m concerned it works exactly how I wanted it to, and the workaround is really simple and easy.
Thanks friend

1 Like