LlSetText

From Second Life Wiki
Revision as of 09:21, 6 February 2007 by Rich Nykvist (talk | contribs)
Jump to navigation Jump to search

return_text( );

spec Function ID
caveats Delay
examples Energy


The llSetText( ) function works with three arguments, the text you want to display, the color value in RGB and the alpha (transparency) value.

Here's an example:

llSetText("I am on", <1,1,1>,1.0);

What do the numbers mean? The <1,1,1> represents the values for red, green, and blue. <1,1,1>, means "white" and <0,0,0> means "black".

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).