Action continues until physically stopping


#1

Not sure where to begin by how can you make an action continue until there’s a physical stop to the action - i.e. siren continues until pushing stop button, lifts flash until turning off? Does it require a special statement?


#2

There are While Loops and Repeat Loops that you could use to do something like this.

For example:

When some event triggers off your piston, set a boolean variable equal to True and then begin looping.
Keep looping until the variable becomes false.

In the same piston, set an event trigger outside of the loop which will monitor for the cancelling event.
When that cancelling event happens, turn the looping variable back to false.


#3

To find things along those lines, enable advanced statements when you’re editing your piston:

Then you can do something like this: