While loop execution


#1

Trying to create a piston to take a series of snapshots from a camera if the alarm is tripped. My scenario is:
Alarm triggered
Motion detected
Take picture once every 5 seconds for 2 minutes, then stop.

Will this piston work, or will it get hung up in the while loop and not execute the stop part? Or if someone has a better sugestion, I’m all for it. Thanks.


#2

Never mind. I figured it out. Sometimes I surprise myself.

Changed the statements to async and that did the trick.