Skip to content
lsl.devlsl.devLSL Dev

llBreakAllLinks

function
Function syntax
llBreakAllLinks();
Energy
10

Delinks all prims in the linkset. Requires the PERMISSION_CHANGE_LINKS runtime permission, which must be requested and granted by the owner.

Delinks all prims in the link set.

How to use
llBreakAllLinks();
  • This function fails if the owner does not have edit permissions on the object containing the script, the system message “Delink failed because you do not have edit permission” is received by the owner.
Example 1
15 collapsed lines
//-- requests permission to change linkes, then breaks all links on touch.
default{
state_entry(){
llRequestPermissions( llGetOwner(), PERMISSION_CHANGE_LINKS );
}
run_time_permissions( integer vBitPermissions ){
if (PERMISSION_CHANGE_LINKS & vBitPermissions){
state sMain;
}else{
llResetScript();
}
}
}
state sMain{
touch_start( integer vIntTouched ){
llBreakAllLinks();
}
}
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.

From the Second Life Wiki

Community documentation adapted from LlBreakAllLinks, by Linden Research, Inc. and contributing residents.View contributors and history.

Imported wiki revision:

Licensed under CC BY-SA 3.0. Last wiki edit: .Formatting and links have been adapted for this site; API metadata follows the LSL definitions.