@name Hamburger
@inputs
@outputs
@persist A E:entity Killed
interval(100)
#YOUR HOLO CODE HERE:
if(first()){
    entity():setAlpha(0)
        holoCreate(1)
    holoModel(1,"dome")
    holoColor(1,vec(255,217,167))
    holoScale(1,vec(1,1,0.5))
    
        holoCreate(2)
    holoModel(2,"hqcylinder")
    holoColor(2,vec(45,22,0))
    holoScale(2,vec(1,1,0.15))
    
        holoCreate(3)
    holoModel(3,"hqcylinder")
    holoColor(3,vec(255,217,167))
    holoScale(3,vec(1,1,0.15))
    
    holoPos(1,entity():pos()+vec(0,0,3))
    holoPos(2,entity():pos()+vec(0,0,2.25))
    holoPos(3,entity():pos()+vec(0,0,0.75))
    
    holoParent(2,1)
    holoParent(3,1)
    holoParent(1,entity())
}
#NOW THE NUM NUM PART:
if(!A){
    findByClass("player")
    E = findClosest(entity():pos())
    A = 1
    timer("find",500)
}
if(clk("find") & A){A = 0}

Dist = E:pos():distance(entity():pos())

if(Dist<100 & E:keyUse() & !Killed){
    entity():soundPlay(1,4,"vo/SandwichEat09.wav") 
    Killed = 1 
    timer("killme",3500)
    #these last 3 lines makes hamburger invisible during numnum process :D
    holoAlpha(1,0)
    holoAlpha(2,0)
    holoAlpha(3,0)
}

if(clk("killme") & Killed){ selfDestructAll() }
