From Second Life Wiki
(Redirected from
LSL llBreakLink)
BreakLink
llBreakLink
Description
Function: llBreakLink( integer linknum );
Delinks the task with the given link number
| • integer
| linknum
| –
| Link number (0: unlinked, 1: root prim, >1: child prims) or a LINK_* flag
|
|
Requires the PERMISSION_CHANGE_LINKS permission, granted by the owner, to run.
|
|
| Flag
| Description
|
| LINK_ALL_CHILDREN
| -3
| sends to all children, (everything but the root)
|
| LINK_THIS
| -4
| sends to the prim the script is in
|
|
Caveats
- Do not depend upon the auto-grant status of permissions. Always use the run_time_permissions event.
- If the script lacks the permission PERMISSION_CHANGE_LINKS, the script will shout an error on DEBUG_CHANNEL and the operation fails (but the script continues to run).
- If PERMISSION_CHANGE_LINKS is granted by anyone other then the owner then when the function is called an error will be shouted on DEBUG_CHANNEL.
- Once the PERMISSION_CHANGE_LINKS permission is granted there is no way to revoke it. The script will only loose the permission if it is reset or the object derezzed (deleted, detached, or taken).
- This function removes sitting avatars from the object, even if not sitting on the unlinked prim.
- This function silently fails if called from a script inside an attachment.
See Also
Events
Functions
Articles