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.
Examples
Section titled “Examples”Get This Prim’s Description
Section titled “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
Section titled “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)); }}