@name Dynamic Nodegraphing
@inputs 
@outputs T:table
@persist [Blocks]:array [Var T Nodegraph]:table Step AC AD Generate String:string
@trigger 


if(first()&(map()=="gm_polyarena")){
    #findInSphere(entity():pos(),6000)
    #findClipToClass("func_movelinear")
    #Var["Blocks",array]=findToArray()
    #print(Blocks:count())
    #Var["HL",number]=21 #Height Limit
    #Var["C",number]=1
    #Var["D",number]=1
    #Var["Size",number]=256 #size of individual blocks
    #Var["pos",array]=array()
    
    #for(C=1,256){
    #    Var["pos",array]:pushVector(Var["Blocks",array][C,entity]:pos())
    #}
    #print(Var["pos",array]:count())
    Generate=1
    Step=19
    AC=1
    AD=19
    #Stop=19+256
    T=table()
    
    
}
#interval(500)
Generate=0
if(Generate){
    while(AC<=16&perf()){
        
        Step=Step+16
        T[AC,array]=array()
        while((AD<Step)&perf()){
            T[AC,array]:pushNumber(AD)
            #print(AD)
            AD++
        }
        AC++
    }
}
if(AC>16){Generate=0}
timer("Test",10000)    
if(!Generate&clk("Test")){
 
    
}

Start=19+16*3
for(C=Start,Start+16){
    String=String+C+","
}
print(String)
#19,20,21,22 23,24,25,26 27,28,28,30 31,32,33,34
#




#[while((Var["C",number]<Var["Blocks",array]:count())&perf()){
    Var["A",vector]=Var["Blocks",array][Var["C",number],entity]:pos() #First entity
    while((Var["D",number]<Blocks:count())&perf()){
        Var["B",vector]=Var["Blocks",array][Var["D",number],entity]:pos() #second entity

        
        #print(Var["Height",table][Var["
        Var["D",number]=Var["D",number]+1
    }
    Var["C",number]=Var["C",number]+1
}]#
