If I play a sound at location in a BP how can I stop that sound from playing?

Hello,

Currently Play Sound At Location is just a fire and forget sound and as such doesn’t have an AudioComponent (which is needed to start/stop a sound). This was done because we wanted to reduce the AudioComponent churn, however, it has proven somewhat difficult for people who want to use the node. At some point in the not too distant future we want to do something along the lines of adding a fire and forget Play Sound node that behaves the way the current At Location node does and make the At Location node create and return an AudioComponent like the Attached version does.

In the mean , you might be able to achieve what you are after by doing something like the following:

In your Blueprint, use the Set Sound node to assign it to an attached Audio Component (added via the Components Tab). You can then play/stop that audio component and specify the location at which the sound is played from with a Set Location node.

Give this a shot,

-W

1 Like