Resume vs Execute


#1

Can someone explain the difference between resuming a piston, and executing a piston?

I’m trying to make a virtual switch activate and deactivate a piston, the deactivate is pausing the piston, but I can’t figure out if to activate the piston again, I need to resume, or execute, or both.

for reference, I’ve created this simple piston to start/stop the holiday lights piston

Thanks!


#2

Resume - takes a piston out of “paused” state. If not paused - no effect. If it was paused, it will simply be ready for it’s next trigger/event. It won’t execute without giving it the instruction below.

Execute - run through piston code one time. If a piston is paused, I’d expect this to have no effect on it (wouldn’t run)


#3

I see, so if you pause a piston to “stop” it, you must resume it before you can execute it so that it runs then, cool!