function animentitycolor(ent,r,g,b) entitycolor ent,r,g,b for i=1 to CountChildrens(ent) animentitycolor(GetChild(ent,1),r,g,b) next end function