Programmer sound dynamic length

(Trevor Blom) #1

Hi all,

We are currently exploring the method of using programmer sounds and audio tables to play localized audio as found in

What I’m currently struggling with, is that the Sound lengths are different than the programmer sound length. So whenever I play a sound, it either gets cut off too soon, or is playing too long without sound. We want to trigger different gameplay events, or other dialogues, shortly after one dialogue is done playing.

I couldn’t find any way to set the length of a parameter or event in code. What is the suggested approach?

Thanks in advance

(Cameron Baron) #2

In Studio, you can set the programmer sound instrument to be async, this will play out any sound entirely before stopping/destroying. At which time the stopped and destroy callbacks will execute.

For example: the sound you want to play is one minute long and the programmer sound in the event is five seconds long on the timeline, normally the sound would stop after five seconds but using async the sound will continue for one minute, and then execute the stopped callback

(Trevor Blom) #3

Thanks Cameron, we will try this!