@name 
@inputs ON ON2 ON3
@outputs R EXPLODE
@persist 
@trigger 

if(ON==0){
    if(ON2==0){
        if(ON3==0){
            timer("fire",1000)
if(clk("fire")){R = 255
    timer("fire2",1)}
if(clk("fire2")){R = 0
timer("fire",1000)}
soundPlay(1,1000,"ambient/alarms/scanner_alert_pass1.wav")
timer("spode",randint(100,10000))
}}}
if(ON==1){
    if(ON2==1){
        if(ON3==1){
            stoptimer("fire")
            stoptimer("fire2")
R = 0
    soundPurge()
    stoptimer("spode")
}}}
if(clk("spode")){EXPLODE = 1
    timer("reset",1)
}
if(clk("reset")){EXPLODE = 0}


