Hello, is there a reason why the Interrupt Previous Audio clip is not working for me?
Both nodes use the same Audio Source, even tho the "Interrupt Audio" node uses InterruptPreviousClip, it is still playing in addition to the previous one. am I missing something here?
Issue with "Interrupt Previous Clip" Not Working (Quest Machine)
Re: Issue with "Interrupt Previous Clip" Not Working (Quest Machine)
Hi,
Passthrough nodes immediately run their Active actions and then their True actions, and then immediately activate their children. In this case, this means the "Play Audio" node immediately runs Active then True actions, then immediately activates "Interrupt audio", which immediately runs its Active then True actions. What actions are on your "Interrupt audio" node?
Passthrough nodes immediately run their Active actions and then their True actions, and then immediately activate their children. In this case, this means the "Play Audio" node immediately runs Active then True actions, then immediately activates "Interrupt audio", which immediately runs its Active then True actions. What actions are on your "Interrupt audio" node?
Re: Issue with "Interrupt Previous Clip" Not Working (Quest Machine)
Hey,
Play Audio has an audio action while True.
Inerrupt audio has an audio action with "interrupt Previous Clip" ticked while True
Play Audio has an audio action while True.
Inerrupt audio has an audio action with "interrupt Previous Clip" ticked while True
Re: Issue with "Interrupt Previous Clip" Not Working (Quest Machine)
Hi,
I'll provide a fix for this today. In the meantime, a workaround is to tick Interrupt Previous Clip on the first Audio quest action, too. Even though no other audio clip is playing, this will mark the first clip as interruptible so that the second clip and interrupt it.
I'll provide a fix for this today. In the meantime, a workaround is to tick Interrupt Previous Clip on the first Audio quest action, too. Even though no other audio clip is playing, this will mark the first clip as interruptible so that the second clip and interrupt it.
Re: Issue with "Interrupt Previous Clip" Not Working (Quest Machine)
Thanks, it is working now after ticking Interrupt Previous Clip for both audios, is it supposed to work like that?
Re: Issue with "Interrupt Previous Clip" Not Working (Quest Machine)
Hi,
Please give this a try:
QM_AudioQuestActionPatch_2025-01-02.unitypackage
This change will also be in QM 1.2.51. It doesn't require you to tick Interrupt for both.
In QM 1.2.50 and earlier, if Interrupt was unticked, it would use AudioSource.PlayOneShot(), which is uninterruptible. Now it always uses AudioSource.Play(). If Interrupt is ticked and another audio clip is playing on the specified audio source, it will interrupt that previous clip and play the new one. Otherwise, if the audio source is already playing a clip and Interrupt is NOT ticked, it will allow the previous clip to play instead of interrupting it. (It will skip the audio in this case.)
Please give this a try:
QM_AudioQuestActionPatch_2025-01-02.unitypackage
This change will also be in QM 1.2.51. It doesn't require you to tick Interrupt for both.
In QM 1.2.50 and earlier, if Interrupt was unticked, it would use AudioSource.PlayOneShot(), which is uninterruptible. Now it always uses AudioSource.Play(). If Interrupt is ticked and another audio clip is playing on the specified audio source, it will interrupt that previous clip and play the new one. Otherwise, if the audio source is already playing a clip and Interrupt is NOT ticked, it will allow the previous clip to play instead of interrupting it. (It will skip the audio in this case.)