Page 1 of 1

Waiting for Several messages

Posted: Thu Apr 19, 2018 8:17 pm
by Antonio O
Is there a way to have a Sequence that requires waiting for more than one Message? Something like;

Code: Select all

SetActive(Bomb, false)@Message(Message1 && Message2);

Re: Waiting for Several messages

Posted: Thu Apr 19, 2018 9:08 pm
by Tony Li
Hi,

If you know that one message comes before the other, you can check them in order:

Code: Select all

WaitForMessage(Message2)@Message(Message1)->Message(GotBothMessages);
SetActive(Bomb, false)@Message(GotBothMessages)
Otherwise you probably need to handle it outside of the sequence, and call Sequencer.Message() when both conditions are met.