Difference between revisions of "LlSetText"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{LSLFunction|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]]
{{LSLFunction|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]]
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).

Revision as of 09:22, 6 February 2007

return_text( );

spec Function ID
caveats Delay
examples Energy