<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.osgrid.org/index.php?action=history&amp;feed=atom&amp;title=LlBreakLink</id>
	<title>LlBreakLink - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.osgrid.org/index.php?action=history&amp;feed=atom&amp;title=LlBreakLink"/>
	<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlBreakLink&amp;action=history"/>
	<updated>2026-10-25T11:12:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>http://wiki.osgrid.org/index.php?title=LlBreakLink&amp;diff=71&amp;oldid=prev</id>
		<title>Osgridadmin: /* Function: llBreakLink( integer linknum ); */</title>
		<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlBreakLink&amp;diff=71&amp;oldid=prev"/>
		<updated>2017-12-30T16:11:28Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Function: llBreakLink( integer linknum );&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Function: llBreakLink( integer linknum );==&lt;br /&gt;
Delinks the prim with the given link number in a linked object set &amp;lt;br&amp;gt;&lt;br /&gt;
• integer 	linknum 	– 	Link number (0: unlinked, 1: root prim, &amp;gt;1: child prims) or a LINK_* flag &amp;lt;br&amp;gt;	&lt;br /&gt;
Requires the [[PERMISSION_CHANGE_LINKS]] permission, granted by the owner, to run. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Caveats&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
• Do not depend upon the auto-grant status of permissions. Always use the run_time_permissions event. &amp;lt;br&amp;gt;&lt;br /&gt;
• 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). &amp;lt;br&amp;gt;&lt;br /&gt;
• If [[PERMISSION_CHANGE_LINKS]] is granted by anyone other than the owner, then when the function is called an error will be shouted on [[DEBUG_CHANNEL]]. &amp;lt;br&amp;gt;&lt;br /&gt;
• Once the [[PERMISSION_CHANGE_LINKS]] permission is granted there is no way to revoke it. The script will only lose the permission if it is reset or the object derezzed (deleted, detached, or taken). &amp;lt;br&amp;gt;&lt;br /&gt;
• This function removes sitting avatars from the object, even if not sitting on the unlinked prim. &amp;lt;br&amp;gt;&lt;br /&gt;
• This function silently fails if called from a script inside an attachment. &amp;lt;br&amp;gt;&lt;br /&gt;
• This function fails if the owner does not have edit permissions on the object containing the script, the system message &amp;quot;Delink failed because you do not have edit permission&amp;quot; is received by the owner. &amp;lt;br&amp;gt;&lt;br /&gt;
• A prim with [[PERMISSION_CHANGE_LINKS]] can delink any prim in the linked object set even itself or the root &amp;lt;br&amp;gt;&lt;br /&gt;
• The only LINK_* flag that linknum currently supports is [[LINK_ROOT]]. SVC-3510 &amp;lt;br&amp;gt;&lt;br /&gt;
-• Use [[llGetLinkNumber]]() as the parameter to unlink the script&amp;#039;s prim, not [[LINK_THIS]]. &amp;lt;br&amp;gt;&lt;br /&gt;
-• Use [[llBreakAllLinks]]() instead of using [[LINK_SET, LINK_ALL_CHILDREN]], or [[LINK_ALL_OTHERS]] as the parameter for [[llBreakLink]] &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Examples&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
{|border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|&amp;lt;source lang=&amp;quot;lsl&amp;quot;&amp;gt;&lt;br /&gt;
//-- requests permission to change links, then breaks the link&lt;br /&gt;
//-- between the prim and the rest of the object, on touch.&lt;br /&gt;
default{&lt;br /&gt;
  state_entry(){&lt;br /&gt;
    llRequestPermissions( llGetOwner(), PERMISSION_CHANGE_LINKS );&lt;br /&gt;
  }&lt;br /&gt;
 &lt;br /&gt;
  touch_start( integer vIntTouched ){&lt;br /&gt;
    llBreakLink( llGetLinkNumber() );&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
See Also &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Events&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[run_time_permissions]] 	– 	Permission receiving event 	&amp;lt;br&amp;gt;&lt;br /&gt;
•  	changed 	– 	[[CHANGED_LINK]] 	&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Functions&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[llGetLinkNumber]] 	– 	Returns the link number of the prim the script is in. 	&amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[llGetPermissions]] 	– 	Get the permissions granted 	&amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[llGetPermissionsKey]] 	– 	Get the agent who granted permissions 	&amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[llRequestPermissions]] 	– 	Request permissions 	&amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[llBreakAllLinks]] 	– 	Break all links 	&amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[llCreateLink]] 	– 	Link to another object 	&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Osgridadmin</name></author>
	</entry>
</feed>