Deletes the object. The object does not go to the owner's Inventory 🗑 Trash.

Syntax

void llDie();

Forced delay: 0.0 seconds. Energy: 0.0.

If called in any prim in the link set the result will be the deletion of the entire object.

To remove a single prim from an object, use llBreakLink first.

Caveats

Examples

Useful snippets

llRemoveInventory of llGetScriptName deletes just the calling script, rather than all of the objects that the calling script contains. For instance, you can write a script that chats a little when dragged onto an object from inventory and then politely disappears itself, such as:

// http://wiki.secondlife.com/wiki/llDie
default
{
    state_entry()
    {
        llOwnerSay("llGetRegionTimeDilation()");
        llOwnerSay((string) llGetRegionTimeDilation());
        llRemoveInventory(llGetScriptName());
    }
}

See also

Functions

Articles

Deep notes

Issues