Difference between revisions of "LlBreakAllLinks"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{LSL_Function
{{LSL_Function/permission|PERMISSION_ATTACH|grant=the owner}}{{LSL_Function
|sort=BreakAllLinks
|sort=BreakAllLinks
|func_id=143|func_sleep=0.0|func_energy=10.0
|func_id=143|func_sleep=0.0|func_energy=10.0
Line 18: Line 18:
|also_articles
|also_articles
|notes
|notes
|permission=PERMISSION_CHANGE_LINKS
|cat1=Link
|cat1=Link
|cat2
|cat2

Revision as of 19:27, 16 April 2007

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_ATTACH permission with llRequestPermissions and it must be granted by the owner.

Caveats

Permissions
  • Do not depend upon the auto-grant status of permissions. Always use the run_time_permissions event.
  • If the script lacks the permission PERMISSION_ATTACH, the script will shout an error on DEBUG_CHANNEL and the operation fails (but the script continues to run).
  • If PERMISSION_ATTACH is granted by anyone other than the owner, then when the function is called an error will be shouted on DEBUG_CHANNEL.
  • Once the PERMISSION_ATTACH permission is granted there is no way to revoke it except from inside the script (for example, with a new llRequestPermissions call) or the script is reset or deleted.

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

Signature

function void llBreakAllLinks();