Skip to content

llGetObjectDesc

string llGetObjectDesc()

Returns the description of the prim the script is attached to.

Returns the description of the scripted object/prim. You can set the description using llSetObjectDesc.

This function does not get the description of the object’s root prim, but the description of the prim containing the script. To get the root prim’s description, use llList2String(llGetLinkPrimitiveParams(LINK_ROOT, [PRIM_DESC]), 0) instead.

default {
state_entry() {
// PUBLIC_CHANNEL has the integer value 0
llSay(PUBLIC_CHANNEL, "This prim's description: " + llGetObjectDesc());
}
}
default {
state_entry() {
// PUBLIC_CHANNEL has the integer value 0
llSay(PUBLIC_CHANNEL, "Rootprim's description: "
+ llList2String(llGetLinkPrimitiveParams(LINK_ROOT, [PRIM_DESC]), 0));
}
}