@name Vuvuzela
@persist [E O]:entity T
if(first())
{
    runOnTick(1)
    
    E = entity()
    O = owner()
}

if(changed(numPlayers()))
{
    foreach(I, P:entity = players())
    {
        holoCreate(I,P:pos())
        holoParent(I,P)
        holoAlpha(I,0)
    }
}

P = O:keyUse()
if(changed(P))
{
    if(P)
    {
        T = !T
    }
}

if(changed(P))
{
    for(I=1,numPlayers())
    {
        if(P)
        {
            holoEntity(I):soundPlay(I,0,"vuvuzela_loop_close.wav")
        }else
        {
            soundStop(I)
        }
    }
}
