Page 1 of 1

AudioWaintOnce continues to trigger

Posted: Sun Sep 29, 2024 8:09 pm
by kenlem
I have Dialogue System Trigger set to On TriggerEnter with the following sequence:

AudioWaitOnce(VoiceOvers/Tutorial/Tut-1)->Message(Done);

The audio triggers once then when I come back into the trigger, the audio plays again.

From the docs, I expect the audio to play once then not play again if the player leaves and comes back into the trigger. Do I understand that correctly? Any clue?

Syntax: AudioWaitOnce(clip[, subject[, clips...]])

Description: This command works like AudioWait() except it will check for an internal Lua variable of the entrytag/audioclip name, and if it exists/is true, the audio will be skipped. After one playback, the variable will be created and marked as true.

Re: AudioWaintOnce continues to trigger

Posted: Sun Sep 29, 2024 8:40 pm
by Tony Li
Hi,

The fix for that is coming in v2.2.48. Here's a patch:

DS_AudioWaitOncePatch_2024-09-29.unitypackage

Re: AudioWaintOnce continues to trigger

Posted: Mon Sep 30, 2024 7:14 pm
by kenlem
Thank you so much! Works like a charm.

Re: AudioWaintOnce continues to trigger

Posted: Mon Sep 30, 2024 8:38 pm
by Tony Li
Glad to help!