llSetText
LSLvoid llSetText(string text, vector color, float alpha)
Causes Text to float above the prim, using the specified Color and Opacity.
Parameters
| Type | Name | What it does |
|---|---|---|
| string | text | The text; "\n" starts a new line. |
| vector | color | A vector <r, g, b> with each part 0.0 – 1.0. |
| float | alpha | 1.0 opaque, 0.0 invisible (which is how you clear it). |
Example
default
{
state_entry()
{
llSetText("Touch me", <1.0, 1.0, 0.0>, 1.0);
}
touch_start(integer n)
{
llSetText("", <1.0, 1.0, 1.0>, 0.0); // clear it
}
}
Energy
10
The Linden Scripting Library — what every SL-compatible grid provides.
More in LSL
void llRegionSay(integer channelID, string text)
vector llsRGB2Linear(vector src)
void llRemoveFromLandPassList(string avatar)
string llGetObjectDesc()
list llParseStringKeepNulls(string src, list seperators, list spacers)
void llLinkPlaySound(integer linknumber, string sound, float volume, integer flags)
integer llSetPrimMediaParams(integer face, list rules)
integer llGetUsedMemory()