@name Front Door
@inputs 
@outputs Player:entity Distance Length Damping
@persist Door:entity
@trigger 

interval(10)

if(first() | duped()){
    findByModel("models/hunter/plates/plate1x2.mdl")
    findSortByDistance(entity():pos())
    Door = findResult(1)
    Damping = 300
    }

if(findCanQuery()){
    findByClass("player")
    findSortByDistance(Door:pos())
    Player = findResult(1)
    Distance = Player:pos():distance(Door:pos())
    if(Distance < 90){
        Length= 3
    }else{Length = 48}
    }
