@name Proximity Detector
@inputs OPEN 
@outputs Length
@persist 
@trigger 
interval(1)
E = entity()
Scale = 300
findExcludeClass("*")
findIncludeClass("player")


findInSphere(E:pos(),Scale)

if(find()){    G =findClosest(entity():pos())
    F = G:name()
    if(F == "Ted"){
 OPEN = 1
Length = 95
}
}
 else{OPEN = 0
    Length = 300}
