Skip to content
lsl.devlsl.devLSL Dev

llGetObjectDesc

function
Function syntax
string llGetObjectDesc();
Returns
string
Energy
10

To get the object’s description (not the current prim’s), use PRIM_DESC or OBJECT_DESC.

Returns a string containing the description of the prim the script is attached to.

How to use
string result = llGetObjectDesc();
Get this prim’s description
default
{
state_entry()
{
// PUBLIC_CHANNEL has the integer value 0
llSay(PUBLIC_CHANNEL, "This prim's description: " + llGetObjectDesc() );
}
}
Get the root prim’s description
default
{
state_entry()
{
// PUBLIC_CHANNEL has the integer value 0
llSay(PUBLIC_CHANNEL, "Rootprim's description: "
+ llList2String(llGetLinkPrimitiveParams(LINK_ROOT, [ PRIM_DESC ]), 0));
}
}
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.