llSetText

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

Summary

Function: llSetText( text String, color Vector, alpha Float );

This function is used to set text to display over an object in SL.

• text String
• color Vector
• alpha Float

Specification

Displays text placed over object -- programmer specifies text, color and visibility/transparency.

Caveats

Expression error: Unexpected > operator.None known.

Examples

<lsl>

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

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

Deep Notes

Signature

function void llSetText( text String, color Vector, alpha Float );