Difference between revisions of "CHANGED LINK"

From Second Life Wiki
Jump to navigation Jump to search
m
m (<pre> -> <lsl>)
Line 5: Line 5:
|desc=The number of prims making up the object or avatars seated on the object have changed. This event also occurs when duplicating a linked object or when a prim in an object changes type or shape. This event does not occur when: an object is attached or detached, in an attachment when the avatar sits or unsits, in an attachment when another object is attached or detached, or when a single prim is duplicated.
|desc=The number of prims making up the object or avatars seated on the object have changed. This event also occurs when duplicating a linked object or when a prim in an object changes type or shape. This event does not occur when: an object is attached or detached, in an attachment when the avatar sits or unsits, in an attachment when another object is attached or detached, or when a single prim is duplicated.
|examples=
|examples=
<pre>
<lsl>
default
default
{
{
Line 16: Line 16:
     }
     }
}
}
</pre>
</lsl>
|functions=
|functions=
{{LSL DefineRow||[[llAvatarOnSitTarget]]|}}
{{LSL DefineRow||[[llAvatarOnSitTarget]]|}}

Revision as of 11:14, 18 September 2008

Description

Constant: integer CHANGED_LINK = 0x20;

The integer constant CHANGED_LINK has the value 0x20

The number of prims making up the object or avatars seated on the object have changed. This event also occurs when duplicating a linked object or when a prim in an object changes type or shape. This event does not occur when: an object is attached or detached, in an attachment when the avatar sits or unsits, in an attachment when another object is attached or detached, or when a single prim is duplicated.

Related Articles

Constants

•  PERMISSION_CHANGE_LINKS

Functions

•  llAvatarOnSitTarget
•  llBreakAllLinks
•  llBreakLink
•  llCreateLink
•  llSitTarget
•  llUnSit

Events

•  changed

Examples

<lsl> default {

   changed(integer change)
   {
       if (change & CHANGED_LINK) //note that it's & and not &&... it's bitwise!
       {
           llOwnerSay("The number of links have changed.");
       }
   }

} </lsl>

Deep Notes

Search JIRA for related Issues

Signature

integer CHANGED_LINK = 0x20;