Difference between revisions of "LlDie"
Jump to navigation
Jump to search
Kireji Haiku (talk | contribs) m (damn typo) |
Omei Qunhua (talk | contribs) 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>, | llSetText("<!-- touch to kill --!>", <1.0, 0.0, 0.0>, 1.0); | ||
} | } | ||
touch_start(integer num_detected) | touch_start(integer num_detected) | ||
{ | { | ||
llSay(0, "Good bye, cruel world!"); | |||
llSay( | |||
llDie(); | llDie(); | ||
} | } | ||
Line 45: | Line 44: | ||
// wait a sec | // wait a sec | ||
llSleep(1.0); | llSleep(1.0); | ||
llSay(0, (string)index); | |||
llSay( | |||
--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.
- To detach an object from the avatar call llDetachFromAvatar.
- Detaching a temporary attachment will cause the attachment to be deleted.
|constants |examples= <lsl> default {
state_entry() { // red and opaque text llSetText("