Difference between revisions of "LlGetObjectDesc/it"

From Second Life Wiki
Jump to navigation Jump to search
(Created page with "{{LSL_Function/prim-desc}}{{LSL_Function |func_id=270|func_sleep=0.0|func_energy=10.0 |func=llGetObjectDesc |return_type=string |func_footnote |func_desc |return_text=that is the…")
 
Line 5: Line 5:
|func_footnote
|func_footnote
|func_desc
|func_desc
|return_text=that is the description of the prim the script is attached to.
|REstituisce una stringa che è la descrizione del prim in cui sta lo script.
|spec
|spec
|caveats
|caveats

Revision as of 10:14, 12 January 2012

  Either 'func_desc' or 'return_type' & 'return_text' must be defined

(Please use 'return_text' & 'return_type' or 'func_desc' to summarize the functions actions.)

Summary

Function: string llGetObjectDesc( );
0.0 Forced Delay
10.0 Energy

Returns a string

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.
  • The pipe character '|' and the newline character '\n' are not legal in a prim's description. They will be replaced with '?'.[1]
  • 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.
  • When an attached object is detached, changes made by script to the name and description (of the root prim) of the attachment will be lost. While the object is attached the name and description can be changed but it will not be reflected in inventory. This caveat does not apply to child prims.

Examples

<lsl>default {

   state_entry()
   {
       llSay(PUBLIC_CHANNEL, llGetObjectDesc() );
   }
}</lsl>

See Also

Functions

•  llSetObjectDesc Sets the prim description.
•  llGetObjectName Gets the prim name.
•  llSetObjectName Sets the prim name.
•  llGetObjectDetails

Articles

•  Limits SL limits and constrictions
•  Prim Attribute Overloading

Deep Notes

Footnotes

  1. ^ The pipe character historically has been used to separate fields in the serialized version of inventory. The field is not multi-line so the newline character holds no meaning in this context.

Signature

function string llGetObjectDesc();