Download

How to start / stop sound and make sound emit from an actor

How to start/stop sound and make sound emit from an actor? I made a cue and I tried making it a variable in the enemy actor bp, and if I use the node, PlaySoundAtLocation, it does not play at the location and there is no way to stop this sound. What do I do to make this work

In order to manipulate starting and stopping a sound, you need to be able to reference the sound in your Blueprints. For this, you will need an Audio Component. Playing a sound on an Audio Component allows you to start, pause, and stop sounds using Blueprints.

In order to make a sound sound like it has a location, you need to set its spatialization settings, this can be found in its Sound Attenuation Settings.