@name ATM
@inputs Slot:entity 
@outputs 
@persist 
@trigger 
interval(100)

if (first()) {
    holoCreate(1)
    holoModel(1,"models/props/cs_assault/money.mdl")
    holoPos(1,Slot:pos()+vec(0,6,1.8))
    holoAng(1,Slot:angles()+ang(0,90,0))
    holoColor(1,vec(0,255,0),100)
    
    Money = Slot
    
    Scale = vec(1,1,1) * 4
    
    CornerPos1 = Scale / 2
    CornerPos2 = -CornerPos1
    
    CornerPos1 = Money:toWorld(CornerPos1+vec(5,10,0))
    CornerPos2 = Money:toWorld(CornerPos2+vec(5,-10,1))
    
    CornerScale = vec() + 1
    
    holoCreate(2)
    holoPos(2,CornerPos1)
    holoAng(2,Money:angles())
    holoScaleUnits(2,CornerScale)
    holoParent(2,Money)
    
    holoCreate(3)
    holoPos(3,CornerPos2)
    holoAng(3,Money:angles())
    holoScaleUnits(3,CornerScale)
    holoParent(3,Money)
    
    for (I = 2,3) {holoColor(I,vec(),0)}
}
