Author Topic: Playing sounds question.  (Read 1392 times)

stabby_dave

  • Newbie
  • *
  • Posts: 14
Playing sounds question.
« on: November 10, 2021, 06:03:26 AM »
I have a script which plays a sound. Is there any way I can stop other sripts from playing sounds at the same time?

To be clearer: My script plays a sound which goes on for - say - 8 seconds. However, 5 seconds after it starts, it calls another script (to which I don't have access) which also plays a sound. Is there any way to supress the other script from playing from inside mine?

Cheers.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4790
  • RTFM
Re: Playing sounds question.
« Reply #1 on: November 10, 2021, 10:49:56 AM »
Not as such, no.

While a "Play a Sound" action can end sound playback in other commands, it cannot prevent other commands from starting playback.


You could try splitting your sound into two parts, and starting the second part shortly after running the command you don't have access to, to try and cut off that sound, but that would be timing-sensitive.

stabby_dave

  • Newbie
  • *
  • Posts: 14
Re: Playing sounds question.
« Reply #2 on: November 11, 2021, 01:41:42 PM »
Ok, cheers.

I'll have to live with it. Not a big deal.