How to know whether something occurred
The message sending protocols between a scene and a component, or between pies (through Connect) are extremely powerful, but not entirely consistent. A message sent from a component to the current scene is received by itself, but one sent to Connect is not received by itself. How can you trigger a response if no-one has responded?
There are a variety of ways:-
- send a message to your self with a delay of 2-3 seconds after you sent to message to Connect. If you get a response from Connect then set a. flag variable, and when you receive the message from yourself, consult (and reset) that variable.
- Use a variable in a similar way – assign it a value with some delay (2-3 seconds) and then have a detect trigger on it, which checks the flag variable in the same way as the message sending (above).
In general, set an event to happen at some delay after sending your message to Connect and then use that event to see if a response has come in from Connect.