@name Holo Effects Numbah 2
@inputs
@outputs [Ang Pos]:array
@persist E:entity I MaxEnts T
@trigger

if(first())
{
    E = entity():isWeldedTo() ?: entity()
    entity():setAlpha(0)
    entity():propNotSolid(1)
    entity():setMass(0)
    
    MaxEnts = 25
}

interval(50)

while(holoCanCreate() & perf() & I < MaxEnts)
{    
    I++    
    
    holoCreate(I)
    holoModel(I, E:model())
    holoColor(I, E:getColor())
    holoMaterial(I, E:getMaterial())
}

Ang:unshiftAngle(E:angles())
Pos:unshiftVector(E:pos())

for (I = 1, MaxEnts)    
{
    holoAng(I, Ang[I, angle])
    holoPos(I, Pos[I, vector])
    holoAlpha(I, 200 - (I / MaxEnts) * 200)
}
