llBreakAllLinks

From Second Life Wiki
Revision as of 18:50, 26 November 2007 by Xaviar Czervik (talk | contribs) (Added Example)
Jump to navigation Jump to search

Summary

Function: llBreakAllLinks( );
0.0 Forced Delay
10.0 Energy

Delinks all tasks in the link set.

To run this function the script must request the PERMISSION_CHANGE_LINKS permission with llRequestPermissions and it must be granted by the owner.

Caveats

Permissions

Examples

// Makes the object explode if there are more than 5 (or so) links. 
// If there are more than 200 links this will cause the region to slow down A LOT.
// Useful if you want vehicles to explode when being shot at.
// This script assumes that the user already has PERMISSION_CHANGE_LINKS.
// If it does not, THIS SCRIPT WILL FAIL!
default {
     state_entry() {
          llSetStatus(STATUS_PHYSICS, 1); //Make it physical, if it isn't already.
          llBreakAllLinks(); //KA-BOOM!
          llRemoveInventory(llGetScriptName()); //Delete this script.
     }
}

See Also

Events

•  run_time_permissions Permission receiving event

Functions

•  llGetPermissions Get the permissions granted
•  llGetPermissionsKey Get the agent who granted permissions
•  llRequestPermissions Request permissions
•  llBreakLink Break a link
•  llCreateLink Link to another object

Articles

•  Script permissions

Deep Notes

Signature

function void llBreakAllLinks();