AudioWaintOnce continues to trigger
Posted: Sun Sep 29, 2024 8:09 pm
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.
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.