Difference between revisions of "LlDie"

From Second Life Wiki
Jump to navigation Jump to search
(Added example)
Line 11: Line 11:
**To detach an object from the avatar call [[llDetachFromAvatar]]
**To detach an object from the avatar call [[llDetachFromAvatar]]
|constants
|constants
|examples
|examples=<pre>//Counts down from 5 to 1, then dies
default
{
    state_entry()
    {
        integer olf;
        for(olf=5;olf>0;olf--)
            llSay(0, (string)olf);
      llDie();
    }
}</pre>
|helpers
|helpers
|also_functions={{LSL DefineRow||[[llDetachFromAvatar]]|}}
|also_functions={{LSL DefineRow||[[llDetachFromAvatar]]|}}

Revision as of 03:19, 9 March 2007

Summary

Function: llDie( );

Deletes the object. The object does not go to the owners Inventory:Trash.

This function can be called from any prim in the link set and will result in the entire object being deleted.

Caveats

  • 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.
All Issues ~ Search JIRA for related Bugs

Examples

//Counts down from 5 to 1, then dies
default
{
    state_entry()
    {
        integer olf;
        for(olf=5;olf>0;olf--)
            llSay(0, (string)olf);
       llDie();
    }
}

See Also

Functions

•  llDetachFromAvatar

Articles

•  Attachment

Deep Notes

Search JIRA for related Issues

Signature

function void llDie();