Jump to content

LlGetObjectDesc

From OSgrid Wiki
Revision as of 22:46, 31 December 2017 by Osgridadmin (talk | contribs) (Created page with "==Function: string llGetObjectDesc( );== Returns a string that is the description of the prim the script is attached to <br><br> '''Caveats''' <br> • The prim description is...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Function: string llGetObjectDesc( );

Returns a string that is the description of the prim the script is attached to

Caveats
• The prim description is limited to 127 bytes, any string longer then that will be truncated. This truncation does not always happen when the attribute is set or read.
• Note that when people have Hover Tips on All Objects selected in the viewer's View menu, they'll see the object description pop-up for any object under their mouse pointer. For that reason, it is good practice to only set human-friendly information in the description (e.g. keys and such).
Examples

<source lang="lsl">

default {

   state_entry()
   {
       llSay(PUBLIC_CHANNEL, llGetObjectDesc() );
   }

} </source>


See Also
Functions
• llSetObjectDesc – Sets the prim description.
• llGetObjectName – Gets the prim name.
• llSetObjectName – Sets the prim name.
• llGetObjectDetails