Difference between revisions of "LlDie"

From Second Life Wiki
Jump to navigation Jump to search
m (damn typo)
m (Sorry, but ... (float) TRUE is horrible, and having to explain PUBLIC_CHANNEL every time it's used, defeats the purpose)
Line 23: Line 23:
     {
     {
         // red and opaque text
         // red and opaque text
         llSetText("<!-- touch to kill --!>", <1.0, 0.0, 0.0>, (float)TRUE);
         llSetText("<!-- touch to kill --!>", <1.0, 0.0, 0.0>, 1.0);
     }
     }


     touch_start(integer num_detected)
     touch_start(integer num_detected)
     {
     {
        // PUBLIC_CHANNEL has the integer value 0
         llSay(0, "Good bye, cruel world!");
         llSay(PUBLIC_CHANNEL, "Good bye, cruel world!");
         llDie();
         llDie();
     }
     }
Line 45: Line 44:
             // wait a sec
             // wait a sec
             llSleep(1.0);
             llSleep(1.0);
 
             llSay(0, (string)index);
            // PUBLIC_CHANNEL has the integer value 0
             llSay(PUBLIC_CHANNEL, (string)index);
 
             --index;
             --index;
         }
         }
         llDie();
         llDie();
     }
     }

Revision as of 07:45, 12 January 2013

{{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("