If I play a sound at location in a BP how can I stop that sound from playing?
I use the "play sound at location"- node in my blueprint to play a sound, but I want to interrupt it/stop it halfway through. How can I do this?
asked May 29 '14 at 12:04 PM in Blueprint Scripting
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 time, 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,
I'm trying to make several objects that i can click on , all of them assigned to the E key.... but i don't understand how to do that without activating all of them at the same time. Is there a way of activating the object which is in proximity to the player ? The standard activation method of current games, Press E to activate and deactivate individual objects that have separate sounds for example.
answered Nov 04 '14 at 12:15 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here