@name Fendors
@inputs [W1 W2 W3 W4]:entity 
@outputs 
@persist I Ammount Height:number 
@trigger 
interval(15)

if (first() | dupefinished()) {
    Ammount = 4
    Height = 0
}

if (I < Ammount & holoCanCreate()) {
    I++
    
    holoCreate(I)
    holoModel(I,"hq_torus")
    holoScale(I,vec(5,5,8))
    
    holoClipEnabled(1,1,1)
    holoClip(1,1,vec(10,0,0),vec(1,0,0),0)
    
    holoClipEnabled(2,1,1)
    holoClip(2,1,vec(-10,0,0),vec(-1,0,0),0)
    
    holoClipEnabled(3,1,1)
    holoClip(3,1,vec(-10,0,0),vec(-1,0,0),0)
    
    holoClipEnabled(4,1,1)
    holoClip(4,1,vec(-10,0,0),vec(-1,0,0),0)
}

holoPos(1,W1:pos() + vec(0,0,Height))
holoPos(2,W2:pos() + vec(0,0,Height))
holoPos(3,W3:pos() + vec(0,0,Height))
holoPos(4,W4:pos() + vec(0,0,Height))

holoAng(1,W1:angles() + ang(0,90,0))
holoAng(2,W2:angles() + ang(90,90,0))
holoAng(3,W3:angles() + ang(90,90,0))
holoAng(4,W4:angles() + ang(90,90,0))
