Page 1 of 1

How to activate multiple sequences?

Posted: Fri Dec 06, 2019 9:00 am
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?

Re: How to activate multiple sequences?

Posted: Fri Dec 06, 2019 9:14 am
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");