Anyone know how to receive a bang when the patch it unlocked? I can’t seem to find the object/workaround.
I don’t think the OP wants to check the state of the patch, IMO he wants to trigger a bang the very moment the patch gets unlocked.
Post the code below in a js object, then send the message poll to the object. It will check the state of the patch every 100 milliseconds. If you want to find out the state of the patch just once, send the message lockstate.
var polling = new Task(lockstate);
polling.interval = 100;
C74 RSS Feed | © Copyright Cycling '74