@name Gear
@inputs 
@outputs 
@persist E1:entity 
@trigger 

runOnTick(1)
holoAng(1,holoEntity(1):angles()+ang(0,1,1))

if (first()){
    E1=propSpawn("models/hunter/triangles/trapezium3x3x1.mdl",entity():toWorld(vec(0,0,23)),1)
    E1:setMaterial("sprops/textures/sprops_rubber2")
    
    holoCreate(1)
    holoModel(1,"models/Mechanics/gears/gear16x6_large.mdl")
    holoPos(1,entity():toWorld(vec(0,0,110)))
    holoScale(1,vec(0.4,0.4,0.4))
    
    holoCreate(2)
    holoModel(2,"models/Mechanics/gears/gear16x6_large.mdl")
    holoColor(2,vec(0,0,0))
    holoPos(2,holoEntity(1):toWorld(vec(0,0,5.5)))
    holoScale(2,-vec(0.5,0.5,0.5))
    holoParent(2,holoEntity(1))
    
    holoCreate(3)
    holoModel(3,"models/hunter/plates/plate05x05.mdl")
    holoColor(3,vec(0,255,255))
    holoPos(3,entity():toWorld(vec(0,0,46)))
    holoEntity(3):setMaterial("debug/debugdrawflat")
    
    holoCreate(4)
    holoModel(4,"models/effects/vol_light128x128.mdl")
    holoPos(4,entity():toWorld(vec(0,0,40)))
    holoScale(4,vec(0.2,0.2,0.4))
    holoAng(4,ang(0,0,180))
    holoColor(4,vec(0,200,255))
    
    #lightCreate(1)
    lightParent(1,holoEntity(3))
}

