@name Bacons Garage Door
@inputs [Mount Door]:entity
@outputs 
@persist 
@trigger 
interval(100)

if(first()){
    Door:setAlpha(0)
    
    holoCreate(1)
    holoModel(1,"models/props_c17/TrapPropeller_Engine.mdl")
    holoPos(1,Mount:pos()+vec(2,0,0))
    holoAng(1,ang(90,0,90))
    
    holoCreate(2)
    holoModel(2,"models/props_c17/pulleywheels_large01.mdl")
    holoPos(2,Mount:pos()+vec(14,12,0))
    holoAng(2,ang(0,0,90))
    holoScale(2,vec(0.3,0.3,0.3))
    
    holoCreate(3)
    holoModel(3,"models/props_c17/pulleywheels_large01.mdl")
    holoPos(3,Mount:pos()+vec(14,-5,0))
    holoAng(3,ang(0,0,90))
    holoScale(3,vec(0.5,0.5,0.5))
    
    holoCreate(4)
    holoModel(4,"models/props_c17/signpole001.mdl")
    holoPos(4,Mount:pos()+vec(0,140,0))
    holoAng(4,ang(0,0,90))
    holoScale(4,vec(1,1,1.15))
    
    holoCreate(5)
    holoPos(5,Door:pos()+vec(0,0,50))
    holoAng(5,ang(0,90,0))
    
    holoCreate(6)
    holoPos(6,Door:pos())
    holoAng(6,Door:angles())
    holoMaterial(6,"models/props_canal/metalwall005b")
    holoScaleUnits(6,Door:aabbSize())
    holoParent(6,5)
}

#holoAng(5,holoEntity(5):angles()+ang(-1,0,0))
