@name DamageDetector
@inputs DamageDetector
@outputs FadingDoor Reset On
@persist
@trigger
if(first()){
    On=1
}
 runOnTick(1)
if(DamageDetector>1) {
    FadingDoor = 1
 timer("reset",1500)
}
 
if(DamageDetector<1) {
    FadingDoor = 0
    Reset = 0
}
#print(_HUD_PRINTCENTER,DamageDetector:toString())
if(clk("reset")){
Reset=1}

