@name Prop Door 2
@persist R:array O E:entity
interval(100 )
if(first())
{
    E = entity():isConstrainedTo()
    R = array("STEAM_0:0:56021974")
}
findByClass("player")
findSortByDistance(E:pos())
if(find():pos():distance(E:pos())<400)
{
    for(I=1,R:count())
    {
        if(find():steamID()==R[I,string])
        {
            V = 1
            break
        }else
        {
            V = 0
        }
    }   
    if(!O)
    {
        if(find():aimEntity()==E&&find():keyUse()&&V)
        {
            O = 1
            timer("c",1000)
        }
    }else
    {
        if(clk("c"))
        {
            stoptimer("c")
            O = 0
        }
    }
    
    if(changed(O))
    {
        E:propNotSolid(O)
    }
}
if(duped()||dupefinished())
{
    reset()
}
