llBreakAllLinks
function
Function syntax
llBreakAllLinks();- Energy
- 10
- Permission
PERMISSION_CHANGE_LINKS
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.
llBreakAllLinks();Caveats
Section titled “Caveats”- 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.
Examples
Section titled “Examples”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(); }}See also
Section titled “See also”Functions
Section titled “Functions”llBreakLink— Break a linkllCreateLink— Link to another object
Events
Section titled “Events”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.