AudioWaintOnce continues to trigger

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
kenlem
Posts: 25
Joined: Sun Aug 16, 2020 5:19 pm

AudioWaintOnce continues to trigger

Post 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.
User avatar
Tony Li
Posts: 21684
Joined: Thu Jul 18, 2013 1:27 pm

Re: AudioWaintOnce continues to trigger

Post by Tony Li »

Hi,

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

DS_AudioWaitOncePatch_2024-09-29.unitypackage
Post Reply