Difference between revisions of "LlDie"

From Second Life Wiki
Jump to navigation Jump to search
m (since it's a won't-fix it really belongs here an not in the bug template)
m
Line 16: Line 16:
**[[llDetachFromAvatar|Detaching]] a [[llAttachToAvatarTemp|temporary attachment]] will cause the attachment to be deleted.
**[[llDetachFromAvatar|Detaching]] a [[llAttachToAvatarTemp|temporary attachment]] will cause the attachment to be deleted.
|constants
|constants
|examples
|examples=
<lsl>
default
{
    state_entry()
    {
        // red and opaque text
        llSetText("<!-- ouch to kill --!>", <1.0, 0.0, 0.0>, (float)TRUE);
    }
 
    touch_start(integer num_detected)
    {
        // PUBLIC_CHANNEL has the integer value 0
        llSay(PUBLIC_CHANNEL, "Good bye, cruel world!");
        llDie();
    }
}
</lsl>
<lsl>
<lsl>
//Counts down from 5 to 1, then dies
//Counts down from 5 to 1, then dies

Revision as of 05:29, 6 October 2012

{{LSL_Function |inject-1= |inject-2= |func=llDie |sort=Die |func_id=41|func_sleep=0.0|func_energy=0.0 |func_footnote=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. |func_desc=Deletes the object. The object does not go to the owners Inventory:Trash. |return_text |spec |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.

|constants |examples= <lsl> default {

   state_entry()
   {
       // red and opaque text
       llSetText("