Skip to content
lsl.devlsl.devLSL Dev

llBreakLink

function
Function syntax
llBreakLink(
  1. integer link// The link number (0: unlinked, 1: root prim, >1: child prims and seated avatars) to delink. Values: Links
);
Energy
10

Delinks the prim specified by the link number link. Requires the PERMISSION_CHANGE_LINKS runtime permission.

Delinks the prim with the given link number in a linked object set

How to use
llBreakLink(0);
Example 1
11 collapsed lines
//-- requests permission to change links, then breaks the link
//-- between the prim and the rest of the object, on touch.
default
{
touch_start(integer vIntTouched)
{
llRequestPermissions(llGetOwner(), PERMISSION_CHANGE_LINKS);
}
run_time_permissions(integer perm)
{
if (perm & PERMISSION_CHANGE_LINKS)
{
llBreakLink(llGetLinkNumber());
}
}
}

From the issue templates included by the wiki article:

  • SVC-3510 (bug): LINK_* flags do not work with llBreakLink
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.