@name Auto Door
@outputs Fade
@persist Chip:entity SCALE Fade Target:array T
if(first()){SCALE=100
    Chip=entity()}
runOnTick(1)



#findExcludePlayer("*")
findByClass("player")
findIncludePlayer("Cum")
findIncludePlayer(owner())
#findIncludePlayer("Cenn")
Target = findToArray()
for(I=1,Target:count()){
    if(Target[I,entity]:pos():distance(entity():pos()) < SCALE){
Fade = 1
}else{Fade=0
}
}

#print(_HUD_PRINTCENTER,Fade:toString())

        
        



    
    
    
    



