LlBreakAllLinks
From Second Life Wiki
| LSL Portal | | | Functions | | | Events | | | Types | | | Operators | | | Constants | | | Flow Control | | | Script Library | | | Tutorials |
Function: llBreakAllLinks( );
| 143 | Function ID |
| 0.0 | Delay |
| 10.0 | Energy |
Delinks all prims in the link set.
Requires the PERMISSION_CHANGE_LINKS permission, granted by the owner, to run.
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.
Examples
//-- requests permission to change linkes, 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(); } }
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 |

