Function Line:TEntity(x1#,y1#,z1#,x2#,y2#,z2#) Local scale# = G_Line_Scale Local c1:TEntity=CreateSphere() PositionEntity c1,x1,y1,z1 Local c2:TEntity=CreateSphere() PositionEntity c2,x2,y2,z2 Local p:TPivot=CreatePivot() PositionEntity p,x1,y1,z1 Local le#=EntityDistance# (c1,c2) / 2.0 'le#=le#-(le#/2) Local c3:TEntity=CreateCylinder() PositionEntity c3,x1,le+y1,z1 ScaleEntity c3,scale,le,scale EntityColor c3,255,255,255 EntityParent c3,p PointEntity p,c2 TurnEntity p,90,0,0 FreeEntity c1 FreeEntity c2 FreeEntity p Return(c3) End Function