How to activate multiple sequences?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Icolino7
Posts: 6
Joined: Wed Nov 27, 2019 9:47 am

How to activate multiple sequences?

Post by Icolino7 »

Let's say I want to activate a custom sequence command called ActivateNextBtn(). But only close the sequence when I receive the message with WaitForMessage(ContinueToNext);

How would I do that?
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to activate multiple sequences?

Post by Tony Li »

Hi,

If I understand correctly, this Sequence should do it:

Code: Select all

ActivateNextBtn(); 
WaitForMessage(ContinueToNext)
When the player clicks the button (or whenever you want to close the sequence), use this C# code:

Code: Select all

PixelCrushers.DialogueSystem.Sequencer.Message("ContinueToNext");
Post Reply