%obj = new staticShape()
{
a = %a;
b = %b;
datablock = cubeShapeData;
scale = vectorLen( %offset ) SPC %size SPC %size;
position = vectorScale( vectorAdd( %a, %b ), 0.5 );
rotation = %xyz SPC %pow;
visuals=true;
};
missionCleanup.add( %obj );
%obj.setNodeColor( "ALL", %color );
This is the code I am using to add lines. (Not my original concept)