Difference between revisions of "LlSetObjectDesc"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
(<lsl> example) |
|||
Line 10: | Line 10: | ||
*According to [http://jira.secondlife.com/browse/VWR-437 VWR-437] if you set the description to longer then 256 bytes the object may no longer be rezzable. Use caution if using this field to store data. | *According to [http://jira.secondlife.com/browse/VWR-437 VWR-437] if you set the description to longer then 256 bytes the object may no longer be rezzable. Use caution if using this field to store data. | ||
|constants | |constants | ||
|examples=< | |examples=<lsl>//store the owner's name in the prim description | ||
//store the owner's name in the prim description | |||
touch_start(integer total_number) | touch_start(integer total_number) | ||
{ | { | ||
Line 20: | Line 20: | ||
llSetObjectDesc(temp); | llSetObjectDesc(temp); | ||
} | } | ||
</lsl> | |||
</ | |||
|helpers | |helpers | ||
|also_functions= | |also_functions= |
Revision as of 14:16, 16 February 2008
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Caveats
- The object description is limited to 127 bytes, any string longer then that will be truncated.
- According to VWR-437 if you set the description to longer then 256 bytes the object may no longer be rezzable. Use caution if using this field to store data.
Examples
<lsl>//store the owner's name in the prim description
touch_start(integer total_number)
{ string temp;
temp = llKey2Name(llGetOwner());
llSetObjectDesc(temp); }</lsl>
See Also
Functions
• | llGetObjectDesc | – | Returns the object description. | |
• | llGetObjectName | – | Gets the object name. | |
• | llSetObjectName | – | Sets the object name. |
Articles
• | Prim Attribute Overloading |