Difference between revisions of "LlSetText"

From Second Life Wiki
Jump to navigation Jump to search
Line 13: Line 13:
|p2 = color
|p2 = color
|p2t = Vector
|p2t = Vector
|p2d = color in RGB enclosed between <> signs, as in <0,0,0> = white, <1,1,1> = black
|p2d = color in RGB enclosed between <> signs, as in <0,0,0> = black, <1,1,1> = white
|p3 = alpha
|p3 = alpha
|p3t = Float
|p3t = Float
|p3d = transparency, a number between 0 and 1.  0 is fully transparent, 1.0 is fully visible.
|p3d = visibility, a number between 0 and 1.  0 is fully transparent (invisible), 1.0 is fully visible (opaque).


  llSetText( string text, vector color , float alpha );
  llSetText( string text, vector color , float alpha );
Line 23: Line 23:
• float alpha
• float alpha


Use:
Set text floating over object
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...


Set text floating over object
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).


}}
}}

Revision as of 10:33, 6 February 2007

== return type [[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 return type return description

• 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).
llSetText( string text, vector color , float alpha );

• string text • vector color • float alpha

Use: Set text floating over object

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


ending text