//place this sit script in a prim (poseball) or the root prim of a linked set //adapted by David Miller - 23 November 2009 // string text = "sit"; //what you would like the float text to say // default { state_entry() { vector rot=<0, 0, 0>*DEG_TO_RAD; //rotation in degrees of avatar on Sit //negative values may also be used rotation finalRotation=llEuler2Rot(rot); //convert rotation llSitTarget(<0.28,0.0,0.25>, finalRotation); //x, y, and z position of avatar on Sit //negative values may also be used //do not use <0,0,0> llSetSitText(text); llSetText(text,<1.0,1.0,1.0>,0.6); //first 3 values are colour of text //single value is text alpha - 1 is opaque, 0 is transparent } changed(integer change) { if (change & CHANGED_LINK) { if (llAvatarOnSitTarget() != NULL_KEY) { llSetText("",<1.0,1.0,1.0>,0.0); //hide string text on Sit //llSetAlpha(0, ALL_SIDES); //if this was a poseball, uncommenting the line above would //hide it on Sit //to uncomment a line, remove the double forward slashes // } else { llSetText(text,<1.0,1.0,1.0>,0.6); //restore string text on Stand Up //llSetAlpha(1.0, ALL_SIDES); //if this was a poseball, uncommenting the line above would //show it on Stand Up //to uncomment a line, remove the double forward slashes // } } } }