Playing a sound from Blueprint

Hey all- Still continuing my quest to learn Unreal and hurdling those challenges everyday. Today’s brain bender: Playing a sound I’ve pre-positioned in the scene. Here’s the scenario:

  • I have a sound pre-positioned in my scene
  • When a player steps into a trigger, I’d like to nab that sound source and play it

Simple, right? But I’ve been running into a trouble. If I create a variable type of “Audio Component” in my trigger BP, I can’t select the sound in my scene.

I could use “Play Sound at Location”, but that seems tiresome if I’ve pre-positioned the sound to where I want it already. Am I just misunderstanding how Audio Components and sounds work in UE4?

With your Audio Component Selected on Scene right Click and on context menu, select reference…

OR, create a variable of Type Audio Component Reference (or something like that), and expose. With Your BP placed on scene, you will be able to use the “picker” and select your audio.

Firstly, create actor and add audio component to your default scene component and add which sound this will be.

Then on event , i have made on begin play , but you add box collider and make on actor begin overlap event same. good luck

1 Like