@name Turret
@inputs 
@outputs 
@persist Timer 
@trigger
@model models/npcs/turret/turret.mdl

if (first()){
holoCreate(1)
holoModel(1,"models/npcs/turret/turret.mdl")
holoAnim(1,1)
soundPlay(2,4000,"npc/turret_floor/turret_deploy_4.wav")           
holoModel(1, "")
timer("first",3000)
timer("secondtimer",6000)
holoParent(1,entity())
entity():setMass(1)
entity():propFreeze(0)
}

if(clk("first")){soundPlay(2,4000,"npc/turret_floor/turret_shotat_3.wav")
holoAnim(1,4)}


if(clk("secondtimer")){
    soundPlay(2,4000,"npc/turret_floor/turret_disabled_4.wav")

holoAnim(1,6)
}

