Difference between revisions of "LlSetObjectDesc"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 24: Line 24:
|helpers
|helpers
|also_functions=
|also_functions=
{{LSL DefineRow||{{LSLG|llGetObjectDesc}}|Returns the object description.}}
{{LSL DefineRow||[[llGetObjectDesc]]|Returns the object description.}}
{{LSL DefineRow||{{LSLG|llGetObjectName}}|Gets the object name.}}
{{LSL DefineRow||[[llGetObjectName]]|Gets the object name.}}
{{LSL DefineRow||{{LSLG|llSetObjectName}}|Sets the object name.}}
{{LSL DefineRow||[[llSetObjectName]]|Sets the object name.}}
|also_tests
|also_tests
|also_events
|also_events

Revision as of 21:01, 16 February 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 Returns the object description.
•  llGetObjectName Gets the object name.
•  llSetObjectName Sets the object name.

Articles

•  Prim Attribute Overloading

Deep Notes

Signature

function void llSetObjectDesc( string desc );