Skip to content
lsl.devlsl.devLSL Dev

LlDie

Looking for the current API? Open the llDie reference →

Wiki description

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

Function notes

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

  • The script may not stop executing immediately after this function is called (SVC-7421).
  • After this function is called, there is no way to undo the deletion of the object.
  • Has no effect if called from within an attachment; there is no way to delete an attachment.

Helper functions

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

See also: articles

Shared wiki helpers

The original page also injects shared parameter notes, caveats or issue information through these helpers. Their conditional MediaWiki logic is not reproduced here; inspect the preserved helper source for additional material.

Template:Warning

Original shared helper source (conditional wiki logic is not evaluated)
<noinclude>
 <nowiki>{{Warning|some message the user should pay attention to but probably won't}}</nowiki>
{{Warning|some message the user should pay attention to but probably won't}}
</noinclude><includeonly><div style="padding: 2px; background: #fee; border: 1px solid black; border-radius: 10px; margin-top: 16px;">
<div style="background: #f9f9f9; border-radius: 8px; border: 1px solid black; margin-bottom: -13px; padding: 0.125em; font-weight: bold; font-size: 1.2em; width: 100px; text-align: center; position: relative; bottom: 15px; left: 5px;">Warning!</div>
<div style="background: #f9f9f9; border-radius: 8px; border: 1px solid black; padding: 0.25em; margin: 1em;">
<div>
{{{1|Some message here.}}}
</div>
</div>
</div>
</includeonly>

Template:Issues

Original shared helper source (conditional wiki logic is not evaluated)
{{#ifeq:{{NAMESPACE}}|Template|{{Multi-lang|<includeonly>category=Jira Issues</includeonly>}}}}<includeonly>{{#if:

The purpose of the following is to swap out the old code and use a new template without breaking the old templates.
{{#if:{{{status|}}}{{{resolution|}}}|
{{#vardefine:last_issue|{{{{{debugging|Issue/Version 1}}}|{{{1}}}|{{{2|}}}
|style={{{style|}}}
|status={{{status|}}}
|resolution={{{resolution|}}}
|priority={{{priority|}}}
|type={{{type|}}}
|dnc={{{dnc|}}}
|fc={{{fc|}}}
}}}}
|
{{#vardefine:last_issue|{{{{{debugging|Issue/Version 1}}}|{{{1}}}|{{{2|}}}
|style={{{style|}}}
|status={{{status|}}}
|resolution={{{resolution|}}}
|priority={{{priority|}}}
|type={{{type|}}}
|dnc={{{dnc|}}}
|fc={{{fc|}}}
}}}}
}}

{{#vardefine:issues{{#var:direction}}|{{#var:issues{{#var:direction}}}}
{{#var:last_issue}}}}

{{#ifexpr:{{#var:count-last-issue|0}} > 0|
{{#vardefine:bugs{{#var:direction}}|{{#var:bugs{{#var:direction}}}}
{{#var:last_issue}}}}
}}

}}{{#if:{{{1|}}}|{{#ifeq:{{NAMESPACE}}|Template|{{IssueTable}}[[Category:Jira Issues{{#var:lang}}|{{#explode:{{{1}}}|-|0}}-{{padleft:{{#explode:{{{1}}}|-|1}}|6|0}}]]}}}}</includeonly><noinclude>
{{documentation}}</noinclude>
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.

From the Second Life Wiki

Community documentation adapted from LlDie, by Linden Research, Inc. and contributing residents.View contributors and history.

Built from these wiki pages, as imported:

Licensed under CC BY-SA 3.0. Last wiki edit: .Formatting and links have been adapted for this site; API metadata follows the LSL definitions.