Spatial sound issue. "Play" audio does not work on all objects of class.

I have a blueprint with an audio object with variable reference in it, other blueprints call on this audio to be played and switched out for others at different times during the game.

This audio object blueprint is to work as an intercom and be in multiple areas of the map. However, only the originally placed Intercom object updates the audio, even when I use “Cast to all actors of class”.
Any ideas?


The blueprint that triggers the SFX


The “Intercom” blueprint that holds the audio object and changes the WAV file

This forum post seemed helpful but I don’t really understand it well.

You want it to work simultaneously for all intercoms?

But you’re only using the first one

image

If you want all of them to react, you’ll need a foreach loop there.

1 Like

Thank you! This solved it! I knew I needed to use a for each loop but I wasn’t sure where as I’m still learning how to use them and how they function. I appreciate the screenshot for direction.

For anyone who may be using this post for their own issues, this is how I have it set up now and it functions.

Thanks again for your instructions!

Great. But I think you can drop the ‘make array’ node :slight_smile:

Just connect the array element pin directly

1 Like

you’re right! Thank you! I’ve changed this now so it’s just this:

The second node I have changed to be called within “Intercom” instead hence only one line out of “Array Element”. Thanks again!

1 Like

:smiley: