llBreakAllLinks
void llBreakAllLinks()De-links all prims in the link set (requires permission PERMISSION_CHANGE_LINKS be set).
//-- requests permission to change links, 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(); }}Caveats
Section titled “Caveats”- This function fails if the owner does not have edit permissions on the object containing the script. When this occurs, the owner receives the system message: “Delink failed because you do not have edit permission”
See Also
Section titled “See Also”- llBreakLink
- llCreateLink
- changed event with CHANGED_LINK parameter