Difference between revisions of "LlSetSitText"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 2: Line 2:
|func_id=242|func_sleep=0.0|func_energy=10.0
|func_id=242|func_sleep=0.0|func_energy=10.0
|func=llSetSitText|p1_type=string|p1_name=text
|func=llSetSitText|p1_type=string|p1_name=text
|func_footnote=
|func_footnote=This is very similar to [[LlSetTouchText]]


|func_desc=Displays '''text''' rather than the default "Sit Here" in the pie menu
|func_desc=Displays '''text''' rather than the default "Sit Here" in the pie menu

Revision as of 17:36, 7 July 2008

Summary

Function: llSetSitText( string text );
0.0 Forced Delay
10.0 Energy

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

• string text

This is very similar to LlSetTouchText

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.


Usage

<lsl>default{

   state_entry(){
       llSetSitText("Sit here");
   }

}</lsl>


Removing Sit Text

There is no way to stop a pie menu from having a "Sit Here" space reserved on it.

To remove custom text that you have placed there, set the text as space: " ".

<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

Signature

function void llSetSitText( string text );