Help: Wind Sound Looping.

Hi

In my level BP, I have set the wind up to change in Speed.

I would like to have the sound match the speed, so wind of .1 will be a soft sound, Wind of .7 would be a loud sound.

There are really only 2 things.

  1. How do I make a sound loop until I need to change it.
  2. When I do need to change it, how do I stop the first one playing.

Here is my basic one for testing purposes.

Any help would be appreciated.

  1. do the looping in the sound cue -> looping node
  2. Just use the “stop” node -> do it with a </> node (so it checks if the speed is over .1/.7) + a branch + an event :slight_smile:

Hi

This one the right one?

868f4175dd55b32e6b62f37e516a63e4dbe78bdf.jpeg

But can not find a node “Stop”

For the stop node -> add a reference to your sound - drag out the link - search for “stop”
For the branch -> just do a right click into the window - search for branch - add the ordinary branch node (under flow control) :slight_smile:

So I made a sound VAR, but can not drag out STOP.

Would it be easier, to have 1 wind sound and change the volume / pitch buy the level of wind.

Yep, you can also do it with a “adjust volume” node. Otherwise when you want to use my upper suggestion you just have to do it with a reference instead of a variable

Hi

When I “Play Sound At Location” there is no out reference.

When you want to do it like that, it gets a little bit more difficult :stuck_out_tongue:
I think the easiest way to turn off the other sound is to set the volume to 0 (expand the play sound at location node), because beside that there are just two ways how you could do that:

  1. you do it with references to a sound (therefore you will have to place the sound cues into your level) + use the play/stop nodes (easiest way ^^)
  2. you do it with a actor bp -> https://forums.unrealengine/showthread.php?2478-Play-a-sound-when-key-is-pressed-stop-when-no-longer-pressing

Probably someone has other suggestions :slight_smile: