End animation/Conversation After sound ends

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
hrohibil
Posts: 380
Joined: Thu Nov 04, 2021 12:50 pm

End animation/Conversation After sound ends

Post by hrohibil »

Hi Tony

How do I end a conversation as soon as the sound is completed?
When I say sound i mean I added a sound clip into a conversation.
User avatar
Tony Li
Posts: 22655
Joined: Thu Jul 18, 2013 1:27 pm

Re: End animation/Conversation After sound ends

Post by Tony Li »

If you're playing a sound using AudioWait(), then:
  • If you don't require the player to click a continue button, set the Sequence to:

    Code: Select all

    AudioWait(yoursound)
  • If you do require a continue button click, set the Sequence to:

    Code: Select all

    AudioWait(yoursound)->Message(Done); Continue()@Message(Done)
This assumes (1) the name of your audio clip is "yoursound", and (2) this is the last node in the conversation. If it's not the last node and you still want to end the conversation instead of progressing to the next node (which doesn't really make sense to):

Code: Select all

AudioWait(yoursound)->Message(Done); StopConversation()@Message(Done)
Post Reply