Difference between revisions of "LlSetText"
Jump to navigation
Jump to search
Rich Nykvist (talk | contribs) |
Rich Nykvist (talk | contribs) |
||
Line 11: | Line 11: | ||
Set text floating over object | Set text floating over object | ||
llSetText( | llSetText(String text, Vector color, Float alpha); | ||
|p1 = text | |p1 = text |
Revision as of 09:42, 6 February 2007
== displayed text [[function llSetText ]]( String text, Vector color , Float alpha ); ==
function ID | Function ID |
sleep | Delay |
energy | Energy |
This function is used to set text to display over an object in SL.
Returns a displayed text placed over object -- programmer specifies text, color and visibility/transparency.
Use: Set text floating over object
llSetText(String text, Vector color, Float alpha);
• String | text | – text to display between the quotes |
• Vector | color | – color in RGB enclosed between <> signs, as in <0,0,0> = black, <1,1,1> = white. |
• Float | alpha | – visibility, a number between 0 and 1. 0 is fully transparent (invisible), 1.0 is fully visible (opaque). |
Examples:
llSetText("I am on", <1,1,1>,1.0);
<1,1,1> represents the values for red, green, and blue. <1,1,1>, means "white" and <0,0,0> means "black". Replace the llSay(0,"turning off!"); with...
llSetText("I am off", <0,0,0>,1.0);
The 1.0 is the alpha setting. 1.0 means fully opaque, and 0.0 would be completely transparent (invisible).