Difference between revisions of "LlSetSitText"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 11: Line 11:
Note that like particles, and the other set text functions, all text set via llSetSitText becomes a property of a  prim, not a script. For that reason, the text will remain if the script that set it is deactivated or even removed.
Note that like particles, and the other set text functions, all text set via llSetSitText becomes a property of a  prim, not a script. For that reason, the text will remain if the script that set it is deactivated or even removed.


You have no control over the face face, size or colour of the displayed text.
You have no control over the face, size or colour of the displayed text.




==Usage==
==Usage==


<lsl>default{
<lsl>default
     state_entry(){
{
         llSetSitText("Sit here");
     state_entry()
    {
         llSetSitText("Be Seated");
     }
     }
}</lsl>
}</lsl>
Line 24: Line 26:


== Removing Sit Text ==
== Removing Sit Text ==
There is no way to stop a pie menu from having a "Sit Here" space reserved on it.
There is no way to stop a pie menu from having a "Sit Here" space reserved on it. Although by setting the string to a space no text will be shown.


To remove custom text that you have placed there, set the text as space: "&nbsp;".
To remove custom text that you have placed there, set the text as an empty string like this: "".


<lsl>default{
<lsl>default
     state_entry(){
{
         llSetSitText(" ");
     state_entry()
    {
         llSetSitText("");
     }
     }
}</lsl>
}</lsl>

Revision as of 22:26, 13 May 2009

Summary

Function: llSetSitText( string text );

Displays text rather than the default "Sit Here" in the pie menu

• string text

Specification

The text is limited to 9 characters. A tab (\t) counts as 4 characters. The newline character (\n) will count as 1 character, though it is a bit of a waste, as it will have no effect on how the text is displayed. Aside from counting toward the limit, it will otherwise be ignored.

Note that like particles, and the other set text functions, all text set via llSetSitText becomes a property of a prim, not a script. For that reason, the text will remain if the script that set it is deactivated or even removed.

You have no control over the face, size or colour of the displayed text.


Usage

<lsl>default {

   state_entry()
   {
       llSetSitText("Be Seated");
   }

}</lsl>


Removing Sit Text

There is no way to stop a pie menu from having a "Sit Here" space reserved on it. Although by setting the string to a space no text will be shown.

To remove custom text that you have placed there, set the text as an empty string like this: "".

<lsl>default {

   state_entry()
   {
       llSetSitText("");
   }

}</lsl>

Upon your having done so, the text that appears will revert to "Sit Here."

Examples

See Also

Functions

•  llSitTarget
•  llSetTouchText

Deep Notes

Search JIRA for related Issues

Signature

function void llSetSitText( string text );