This is what I have done.
Inside op control:
Code:
if(INSERT SOMETHING HERE) {
new Thread() {
public void run() {
//Code to run here:
Thread.sleep(time in ms);
//More code
}.start()
}
}
What this does is every time the if statement becomes true it creates a thread and runs the code in run() {} then kills the thread. you can use Thread.sleep(); inside this and it will NOT affect your main code only whats in that thread.
This has worked well for me.
Hope this helps!
Matt