@name Mass materializer
@inputs 
@outputs C
@persist C
@trigger 

#Paint="phoenix_storms/bluemetal"
Paint="els/props/cs_assault/dollar
models/props/cs_assault/dollar"
Obj=entity():getConstraints()
if(first()){C=1}
if(C<=Obj:count()){timer("more",10)}
while(C<=Obj:count()){
    Obj[C,entity]:setMaterial(Paint)
    #Obj[C,entity]:setColor(vec(1,1,1)*255)
    C++
}
if(C>Obj:count()){selfDestruct()}
