Something like this maybe?

Code:
var number;

function wait_seconds()
{
    wait(-3);
    number = 1;
}

function mything()
{
    number = 0;
    wait_seconds();
    while(number != 1)
    {
        //do stuff
        wait(1);
    }
}



Decessus - 80% done. 100% abandoned.
GET MY ANDROID GAME! https://play.google.com/store/apps/details?id=com.lasertrain.zspinballfree&hl=en