New to UE4. How to use stop audio in this instance?
I am trying to learn UE4, just picked it up seriously recently. Below is a simple sound input on key down BP. However I want sound to stop immediately on key release. I am just not sure how to hook up stop sound however. When I google it, it seems people are setting the sound up as a component or something. Surely there is a way to just attach it to the sound cue that is being called? Thanks!
asked Nov 26 '17 at 06:10 AM in Blueprint Scripting
As you can see, Stop needs a reference, so instead of using PlaySoundAtLocation, use "SpawnSoundAtLocation" that node will return a reference to use in Stop
Also using it in tick event is quite unnecessary, there are input functions that will do the job You can either set up the input in your project setttings to use
Or use keyboard events
answered Nov 26 '17 at 02:05 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here