llSetTouchText

From Second Life Wiki
Jump to navigation Jump to search

Summary

Function: llSetTouchText( string text );

Displays text rather than the default "Touch" in the pie menu

• string text

This is very similar to LlSetSitText.
To restore the default value, use an empty string for text.
To make it appear as if there is no text, use some combination of whitespace characters for text.

Caveats

  • The text is limited to 9 bytes.
    • A tab (\t) counts as 4 bytes (four spaces).
    • The newline character (\n) will count as 1 byte, but will have no effect on how the text is rendered (so don't use it).
    • The byte count for each Unicode character is equal to the number of bytes needed to represent it in UTF-8.
All Issues ~ Search JIRA for related Bugs

Examples

<lsl>default {

   state_entry()
   {
       llSetTouchText("Touch me!");
   }
   touch_start(integer detected)
   {
       llSay(0, "you touched me!");
   }
}</lsl>

See Also

Functions

•  llSetSitText

Articles

•  Touch

Deep Notes

Search JIRA for related Issues

Signature

function void llSetTouchText( string text );