So i’m making an airport map, and i want an airplane to flyby. So i created a blueprint class with an airplane and a projectile movement component. Now i want to add a sound to the plane which moves with the plane, so when the plane flies by you hear the sound and when it’s far away you don’t, and you also hear it approaching etc.
I tried a few things with changing the location of the sound, but you hear it everywhere in the map at the same volume all the time. Can anybody help me? Thanks!
Did this work for anyone? As I understand if the “play” function causes the audio to play right away, as soon as you start the game. I’m also trying to get a sound to attach to and move with a plane, but the plane visibility and movement is triggered later in the game so I need the audio to start with the plane. It does play again when I trigger the plane, but it does not move with the plane (change volume, pan direction, etc.)
Hello, did you find a solution for your case? I also try to play a sound at certain time, not when the game starts. And I want to move my sound with the object.
The issue I was having, is that “play sound at location” doesn’t update the location repeatedly, which I suppose makes sense, as it’s not running on tick (I was triggered the audio with a custom event). Therefore, the sound was coming from the original position of my car, and wasn’t moving with it.
I managed to fix it by adding an “audio” component ti the car blueprint and then using “Play” instead of “Play sound at location”, so that the audio component, linked to the car, would play the sound, no matter where it is.
Hello,
To avoid the sound playing as soon as you start the game, just uncheck the “Auto Activate” thing in “Activation” at the bottom of the detail panel ^^
Regards.