@name Strong Door
@inputs Door RealLength Locked
@outputs Length Welded Reset 
@persist InicialLeng
@trigger all
interval(100) ## lower the Ops!

if(first() | duped()){
## Settings ##
InicialLeng = 180 ## increase the value to close the hole on the door.
## Settings ##


Length = InicialLeng
Welded = 1
}

if(Locked){
    Length = InicialLeng,
    if(RealLength <InicialLeng+1){Welded = 1}
}
if(!Locked){
    if(Door){Length = 375}
    if(RealLength>InicialLeng & RealLength < 375){Welded = 0}
}
