Ryan F. Mercer
Whys
When using the following...
UI.PlaySound("...");
The sound is handled as an event, which means the lua code continues to execute while it plays. When the sound is set to a button, the button can be rapidly clicked, resulting in overlapping audio. I would like to be able to pause script execution until the sound completes, or watch for an event letting me know the sound has completed. Does anyone know how to handle this?
UI.PlaySound("...");
The sound is handled as an event, which means the lua code continues to execute while it plays. When the sound is set to a button, the button can be rapidly clicked, resulting in overlapping audio. I would like to be able to pause script execution until the sound completes, or watch for an event letting me know the sound has completed. Does anyone know how to handle this?