llSetObjectDesc
void llSetObjectDesc(string Description)Sets the description of the prim to Description.
The description field is limited to 127 characters.
Parameters
-
Description(string)
- Changing the object description does not trigger a
changedevent.
Examples
Section titled “Examples”Set this prim’s description
Section titled “Set this prim’s description”default{ state_entry() { llSetObjectDesc("NEW PRIM DESCRIPTION"); }}Set the root prim’s description
Section titled “Set the root prim’s description”default{ state_entry() { llSetLinkPrimitiveParamsFast(LINK_ROOT, [PRIM_DESC, "NEW ROOT PRIM DESCRIPTION"]); }}- Object descriptions are often used to store data that needs to be protected from script resets (see, for example, Prim Attribute Overloading). However, descriptions are not immutable and can be tampered with by users or other scripts, either intentionally or accidentally, so this method should only be considered a last resort for data storage.
llLinksetDataWriteand associated functions are generally better suited for storing data, because they allow for significantly more data storage and are much more secure against tampering.