Why doesnt the following code hide the vertices of trn_layer2?
Function init_terrain(x,z,layers=2) trn_layer1=0 trn_layer2=0 trn_layer3=0 trn_layer4=0 trn_layer5=0 trn_layer6=0 x=x-1 z=z-1 trn_Xsize=x trn_Zsize=z If layers>0 trn_layer1=createquad(x,z):EntityTexture trn_layer1,tex_layer1 If layers>1 trn_layer2=createquad(x,z):EntityTexture trn_layer2,tex_layer2:EntityFX trn_layer2,32:;:EntityBlend trn_layer2,1 If layers>2 trn_layer3=createquad(x,z):EntityTexture trn_layer3,tex_layer3:EntityFX trn_layer3,32 If layers>3 trn_layer4=createquad(x,z):EntityTexture trn_layer4,tex_layer4:EntityFX trn_layer4,32 If layers>4 trn_layer5=createquad(x,z):EntityTexture trn_layer5,tex_layer5:EntityFX trn_layer5,32 If layers>5 trn_layer6=createquad(x,z):EntityTexture trn_layer6,tex_layer6:EntityFX trn_layer6,32 surf=GetSurface(trn_layer2,1) For v=1 To CountVertices(surf):VertexColor surf,v,255,255,255,0.0:Next End Function