Difference between revisions of "LlBreakAllLinks"

From Second Life Wiki
Jump to navigation Jump to search
m (Fixing the script)
(changed_link)
Line 36: Line 36:
{{LSL DefineRow||[[llCreateLink]]|Link to another object}}
{{LSL DefineRow||[[llCreateLink]]|Link to another object}}
|also_tests
|also_tests
|also_events
|also_events={{LSL DefineRow||[[changed]]|[[CHANGED_LINK]]}}
|also_articles
|also_articles
|notes
|notes

Revision as of 01:44, 7 June 2008

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

<lsl> //-- 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();
 }

}

</lsl>

See Also

Events

•  run_time_permissions Permission receiving event
•  changed CHANGED_LINK

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();