So I placed a Trigger around a piano, and when I walk up to the piano I trigger the audio, how do I let the audio play through till the end without it playing again over the first one when re triggered? Every time I walk to the piano the audio just overlaps multiple times
DoOnce node
thank much!
Ok, So that works great, but now when I go back to the piano, it does not play again, hence the do once node. Can I get it to play every time I go near the piano?
You have to reset the do once when you walk away. Either
- Stop the music and reset the do once when the player walks away
or
- Reset the do once when the music finishes.
Iām gonna have to keep trying, that āStopā func you got there I canāt find in the list
You need the right kind of variable. To get the right kind, right click on the output of the spawn and choose āpromote to variableā.
Nope. Please look at the picture againā¦
Get the right variable type first. The stop event can be found by dragging from that.
Ok off to bed, Iāll have to figure it out tomorrow night, thanks for all the help. I see Iām just getting error now
Top left, add audio component. Add sound you want to the audio component. Drag the component reference to the pin on the spawn audio node node.
Drag from that component reference, get duration, feed that to the delay
@Haanswors edited to make it clearer and add the delay also - feel free to ask again if still it making sense
Also I would suggest you to go over the starter blueprint tutorials on the Unreal Online Learning Website, this will help you to refresh this kind of stuff.
Awesome! donāt forget to mark the issue as closed!