Difference between revisions of "LlSetText"

From Second Life Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
{{LSLFunctionAll|func_id=152|func_sleep=0.0|func_energy=10.0|func=llSetText|p1_type=string|p1_name=text|p2_type=vector|p2_name=color|p3_type=float|p3_name=alpha|func_footnote=Set text floating over object|return_text|spec|caveats|examples|helpers|related|also|notes}}[[Category:LSL_Functions]][[Category:LSL_Stub]]
{{LSLFunctionAll|func_id=152|func_sleep=0.0|func_energy=10.0|func=llSetText|p1_type=string|p1_name=text|p2_type=vector|p2_name=color|p3_type=float|p3_name=alpha|func_footnote=Set text floating over object|return_text|spec|caveats|examples
 
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).
 
|helpers|related|also|notes}}[[Category:LSL_Functions]][[Category:LSL_Stub]]

Revision as of 09:20, 6 February 2007

   Outdated templated used

Please change the template from 'LSLFunctionAll' to 'LSL_Function' (just replace 'LSLFunctionAll' with 'LSL_Function', do this after fixing any other erorr messages.

  Either 'func_desc' or 'return_type' & 'return_text' must be defined

(Please use 'return_text' & 'return_type' or 'func_desc' to summarize the functions actions.)

Summary

Function: llSetText( string text, vector color, float alpha );
0.0 Forced Delay
10.0 Energy
• string text
• vector color
• float alpha

Set text floating over object

Examples

Deep Notes

Signature

function void llSetText( string text, vector color, float alpha );