llSetTouchText

From Second Life Wiki
Revision as of 13:34, 19 March 2010 by Strife Onizuka (talk | contribs)
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.

Important Issues

~ All Issues ~ Search JIRA for related Bugs
   llSetSitText does not apply for child prims, only the main prims sit text gets displayed

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

All Issues

~ Search JIRA for related Issues
   llSetSitText does not apply for child prims, only the main prims sit text gets displayed

Signature

function void llSetTouchText( string text );