Skip to content

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 changed event.
default
{
state_entry()
{
llSetObjectDesc("NEW PRIM 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.
  • llLinksetDataWrite and associated functions are generally better suited for storing data, because they allow for significantly more data storage and are much more secure against tampering.