Difference between revisions of "LlSetObjectDesc"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
{{LSL_Function
{{LSL_Function/limits}}{{LSL_Function
|func=llSetObjectDesc
|func=llSetObjectDesc
|func_id=271|func_sleep=0.0|func_energy=10.0
|func_id=271|func_sleep=0.0|func_energy=10.0

Revision as of 19:07, 23 October 2008

Summary

Function: llSetObjectDesc( string desc );
0.0 Forced Delay
10.0 Energy

Sets the prims description

• string desc

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 default {

   touch_start(integer total_number)
   {
       string temp;
       temp = llKey2Name(llGetOwner());
       llSetObjectDesc(temp);
   }
}</lsl>

See Also

Functions

•  llGetObjectDesc Gets the prim description.
•  llGetObjectName Gets the prim name.
•  llSetObjectName Sets the prim name.

Articles

•  Limits SL limits and constrictions
•  Prim Attribute Overloading

Deep Notes

Signature

function void llSetObjectDesc( string desc );