--funcion para andamios
--porcentaje de size
--recibe el centro X,Y,Z

fn Andamio PosX PosY PosZ Size =
(
	--base
	Mybox = box length:1 width:Size height:1
	Mybox.pos=[PosX,PosY+Size/2,PosZ]
	Mybox.material = meditMaterials[13]
	Mybox = box length:1 width:Size height:1
	Mybox.pos=[PosX,PosY-Size/2,PosZ]
	Mybox.material = meditMaterials[13]
	Mybox = box length:Size width:1 height:1
	Mybox.pos=[PosX+Size/2,PosY,PosZ]
	Mybox.material = meditMaterials[13]
	Mybox = box length:Size width:1 height:1
	Mybox.pos=[PosX-Size/2,PosY,PosZ]
	Mybox.material = meditMaterials[13]
	
	--techo
	Mybox = box length:1 width:Size height:1
	Mybox.pos=[PosX,PosY+Size/2,PosZ+Size]
	Mybox.material = meditMaterials[13]
	Mybox = box length:1 width:Size height:1
	Mybox.pos=[PosX,PosY-Size/2,PosZ+Size]
	Mybox.material = meditMaterials[13]
	Mybox = box length:Size width:1 height:1
	Mybox.pos=[PosX+Size/2,PosY,PosZ+Size]
	Mybox.material = meditMaterials[13]
	Mybox = box length:Size width:1 height:1
	Mybox.pos=[PosX-Size/2,PosY,PosZ+Size]
	Mybox.material = meditMaterials[13]
	
	--palos verticales
	Mybox = box length:1 width:1 height:Size
	Mybox.pos=[PosX-Size/2,PosY-Size/2,PosZ]
	Mybox.material = meditMaterials[13]
	Mybox = box length:1 width:1 height:Size
	Mybox.pos=[PosX-Size/2,PosY+Size/2,PosZ]
	Mybox.material = meditMaterials[13]
	Mybox = box length:1 width:1 height:Size
	Mybox.pos=[PosX+Size/2,PosY-Size/2,PosZ]
	Mybox.material = meditMaterials[13]
	Mybox = box length:1 width:1 height:Size
	Mybox.pos=[PosX+Size/2,PosY+Size/2,PosZ]
	Mybox.material = meditMaterials[13]
	
	--agrupando
	group $box* name:"boxes"
)




