@name TREE SOUND
@persist N T B


if(N==T+1 & clk("interval")){
    stoptimer("interval")
    timer("ambient",10)
}

if(clk("ambient")){
    timer("ambient",1500)
    B=round(random(1,7))
    Branch=holoEntity(round(random(2,T)))
    Branch:soundPlay(1,1,"ambient/levels/coast/coastbird"+B:toString()+".wav")
}
 
