Blockland Forums > Suggestions & Requests
Smoking
¥ola:
--- Quote from: elm on June 18, 2012, 12:37:15 AM ---function a()
{
cancel($a);
..code..
$a = schedule(1000,0,a);
}
--- End quote ---
Then how do I activate and deactivate it?
Lugnut:
that's.. probably not exactly what he wants..
--- Code: ---function SmokeLoop(%on) //loop things, call SmokeLoop(1); to start.
{
cancel($SmokeSchedule); //Cancel the schedule so it isn't still going.
if(!%on) //If it's disabled, end it. call smokeloop(0); to stop it
return; //actually end it
callthisfunction(1); //Call this function
$SmokeSchedule = schedule([TIME HERE], 0, SmokeLoop, 1); //Lets do it again!
}
--- End code ---
Mariobro123586:
--- Quote from: Brian Smithers on June 17, 2012, 11:17:28 PM ---My guts are going to flow out of my face like a loving river on bath salts
--- End quote ---
hahahaah oh god sig'd
¥ola:
How do I call one function through another function is basicly what I'm trying to ask.
heedicalking:
--- Quote from: elm on June 18, 2012, 12:37:15 AM ---function a()
{
cancel($a);
..code..
$a = schedule(1000,0,a);
}
--- End quote ---
or you could just mount emitter to image and loop through states >_>