<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.osgrid.org/index.php?action=history&amp;feed=atom&amp;title=LlDie</id>
	<title>LlDie - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.osgrid.org/index.php?action=history&amp;feed=atom&amp;title=LlDie"/>
	<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlDie&amp;action=history"/>
	<updated>2026-10-25T11:17:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>http://wiki.osgrid.org/index.php?title=LlDie&amp;diff=103&amp;oldid=prev</id>
		<title>Osgridadmin: Created page with &quot;==Function: llDie( );== Deletes the object. The object does not go to the owners Inventory:Trash. &lt;br&gt; &lt;br&gt; If called in any prim in the link set the result will be the deleti...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlDie&amp;diff=103&amp;oldid=prev"/>
		<updated>2017-12-30T18:03:07Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Function: llDie( );== Deletes the object. The object does not go to the owners Inventory:Trash. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt; If called in any prim in the link set the result will be the deleti...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Function: llDie( );==&lt;br /&gt;
Deletes the object. The object does not go to the owners Inventory:Trash. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
If called in any prim in the link set the result will be the deletion of the entire object. &amp;lt;br&amp;gt;&lt;br /&gt;
To remove a single prim from an object use [[llBreakLink]] first. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Caveats&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
• After this function is called there is no way to undo the deletion of the object. &amp;lt;br&amp;gt;&lt;br /&gt;
• Has no effect if called from within an attachment; there is no way to delete an attachment. &amp;lt;br&amp;gt;&lt;br /&gt;
-• To detach an object from the avatar call [[llDetachFromAvatar]]  &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Examples&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
{|border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|&amp;lt;source lang=&amp;quot;lsl&amp;quot;&amp;gt;&lt;br /&gt;
//Counts down from 5 to 1, then dies&lt;br /&gt;
default&lt;br /&gt;
{&lt;br /&gt;
    state_entry()&lt;br /&gt;
    {&lt;br /&gt;
        integer olf;&lt;br /&gt;
        for(olf = 5; olf &amp;gt; 0; --olf)&lt;br /&gt;
            llSay(0, (string)olf);&lt;br /&gt;
        llDie();&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Useful Snippets&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
[[llRemoveInventory]] of [[llGetScriptName]] deletes just the calling script, rather than all of the object that the calling script contains. For instance, you can write a script that chats a little when dragged on to an object from inventory and then politely disappears itself, such as: &amp;lt;br&amp;gt;&lt;br /&gt;
{|border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|&amp;lt;source lang=&amp;quot;lsl&amp;quot;&amp;gt;&lt;br /&gt;
// http://wiki.secondlife.com/wiki/llDie&lt;br /&gt;
default&lt;br /&gt;
{&lt;br /&gt;
    state_entry()&lt;br /&gt;
    {&lt;br /&gt;
        llOwnerSay(&amp;quot;llGetRegionTimeDilation()&amp;quot;);&lt;br /&gt;
        llOwnerSay((string) llGetRegionTimeDilation());&lt;br /&gt;
        llRemoveInventory(llGetScriptName());&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
See Also &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Functions&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[llDetachFromAvatar]] 	 &amp;lt;br&amp;gt;		&lt;br /&gt;
•  	[[llBreakLink]] 		 &amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Osgridadmin</name></author>
	</entry>
</feed>