Revision: 15946
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 21, 2009 10:01 by ZonjaCapalini
Initial Code
default
{
on_rez(integer param)
{
// Extract color coded in parm, set our own color
integer j = param % 100;
if (j == 0) llSetColor(<0.0,1.0,1.0>,ALL_SIDES); // cyan
else if (j == 1) llSetColor(<1.0,1.0,0.0>,ALL_SIDES); // yellow
else if (j == 2) llSetColor(<0.0,1.0,0.0>,ALL_SIDES); // green
else if (j == 3) llSetColor(<1.0,0.0,0.0>,ALL_SIDES); // red
else if (j == 4) llSetColor(<0.0,1.0,0.0>,ALL_SIDES); // green
else if (j == 5) llSetColor(<1.0,1.0,0.0>,ALL_SIDES); // yellow
else if (j == 6) llSetColor(<0.0,1.0,1.0>,ALL_SIDES); // cyan
else if (j == 7) llSetColor(<1.0,0.0,1.0>,ALL_SIDES); // magenta
// Alter our size
llSetPrimitiveParams([PRIM_SIZE,<0.01,0.01,(float) param / 100000>]);
// We're done -- remove ourselves
llRemoveInventory(llGetScriptName());
}
}
Initial URL
http://zonjacapalini.wordpress.com/2009/07/20/2889-working-with-very-large-linksets-in-opensim/
Initial Description
Initial Title
Klein bottle generator - "Cylinder" code
Initial Tags
Initial Language
Other