play audio when a function start

I think this is laughable simple for you, but can you give me a little hand here? i need to play an audio at the same time when a function start.

thanks for repply veccher, but how exactly? could you demoed the node route?

Leeme guess, you walk at the trigger, and the elevator opens the door, while making the open sound, then it closes and make the closing sound?

I don’t think you can actually have two sounds in a same file, unless there is some sort of timer to control it, if is a audio cue, then I think you would have to configure at the AudioCue asset (at least that’s the way it works for cars)

In a crude manner, you can connect the Play node from the Matinee_Portas_Elevador (I’m Brazillian), to your play audio component node, create and connect to another delay, and then to your reverse animation, in the end, connect your reverse node to the play audio.

have you tried to put the play (audio component) between OnActorBeginOverlap and another play(audio) after Reverse?

try this : i’ve added a boolean variable that starts with false (starts with door closed), you can change the play sound at location to your “play (sound component)” the reason i’ve added a branch is that your “Reverse” is never called, in this way it will open in case the door is closed and reverse (close) in case the door is open.

aquele momento que 3 BR se encontram na internet e começam a conversar em inglês supondo que o outro não é BR

Exactly this! but when closes this doesn’t make any sound, only reverse the matinee animation in order to close the door after the delay, maybe i could just edit the audio to delay the time door closes and play it again

i tried you hint without success here, but thanks!

kkkkkkk fato, eu to surpreso que alguém br veio tentar me ajuda
falo em inglês por causa do costume, ou se por ventura alguém conseguir me ajudar pode servir de info pra outros (que devem vim buscar ajuda e informação em inglês)

mas cara, valeu mesmo pela tentativa, só que não rolou
eu entendi ± sua explicação e acho que expliquei mal, só que a porta já fechava! ligando o node do delay no reverse.

o que tava querendo saber é se existe algum node que liga o play e delay no reverse e executa as duas funções ao mesmo tempo, pq depois de 8 segundos o audio iria reproduzir e a animação de slide close seria executada.

Tem o sequence node, mas a musica só toca quando fecha a porta, e não quando abre?

Porque minha lógica seria a seguinte, se tu for reusar o mesmo audio, tu poderia botar o Sequence na Matinee da porta e musica, ai vai iniciar os dois, e tu bota o Delay em um deles, e depois manda o complete pro Reverse e pro áudio (dá pra conectar múltiplos)

Só se esse Play Audio ai dá loop por automático, ai complica um pouco.

é o contrário, ele toca o audio quando abre e não quando fecha
mais tarde vou dar mais uma olhada nisso que vc me sugeriu

obrigado!