On rezzing, chooses its own colour.
// Random self-colour on rez
// a free little script by Dolly Rotten and Conductor Code
integer randomize()
{
vector col = <llFrand(1.0), llFrand(1.0), llFrand(1.0)>;
// Colour all prims in the object, all faces, full alpha
llSetLinkPrimitiveParamsFast(LINK_SET, [PRIM_COLOR, ALL_SIDES, col, 1.0]);
return 0;
}
default
{
state_entry()
{
randomize();
}
on_rez(integer start_param)
{
randomize();
}
}
