Difference between revisions of "LlBreakAllLinks"

From Second Life Wiki
Jump to navigation Jump to search
(Added Example)
(I am at a loss for words. If you know it doesn't work and you know why, fix it.)
Line 3: Line 3:
|func_id=143|func_sleep=0.0|func_energy=10.0
|func_id=143|func_sleep=0.0|func_energy=10.0
|func=llBreakAllLinks
|func=llBreakAllLinks
|func_desc=Delinks all tasks in the link set.
|func_desc=Delinks all prims in the link set.
|func_footnote
|func_footnote
|return_text
|return_text
Line 9: Line 9:
|caveats
|caveats
|constants
|constants
|examples=
|examples
<pre>
// 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.
    }
}
</pre>
|helpers
|helpers
|also_functions={{LSL DefineRow||[[llBreakLink]]|Break a link}}
|also_functions={{LSL DefineRow||[[llBreakLink]]|Break a link}}

Revision as of 00:22, 27 November 2007

Summary

Function: llBreakAllLinks( );

Delinks all prims 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
All Issues ~ Search JIRA for related Bugs

Examples

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

Search JIRA for related Issues

Signature

function void llBreakAllLinks();