Difference between revisions of "CHANGED LINK"
Jump to navigation
Jump to search
m (<lsl> tag to <source>) |
|||
(11 intermediate revisions by 4 users not shown) | |||
Line 3: | Line 3: | ||
|type=integer | |type=integer | ||
|value={{LSL Hex|0x20}} | |value={{LSL Hex|0x20}} | ||
|desc= | |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= | ||
|functions | <source lang="lsl2"> | ||
default | |||
{ | |||
changed(integer change) | |||
{ | |||
if (change & CHANGED_LINK) //note that it's & and not &&... it's bitwise! | |||
{ | |||
llOwnerSay("The number of links have changed."); | |||
} | |||
} | |||
} | |||
</source> | |||
|functions= | |||
{{LSL DefineRow||[[llAvatarOnSitTarget]]|}} | |||
{{LSL DefineRow||[[llBreakAllLinks]]|}} | |||
{{LSL DefineRow||[[llBreakLink]]|}} | |||
{{LSL DefineRow||[[llCreateLink]]|}} | |||
{{LSL DefineRow||[[llSitTarget]]|}} | |||
{{LSL DefineRow||[[llUnSit]]|}} | |||
|constants= | |||
{{LSL DefineRow||[[PERMISSION_CHANGE_LINKS]]|}} | |||
|events= | |events= | ||
{{LSL DefineRow||[[changed]]|}} | {{LSL DefineRow||[[changed]]|}} | ||
|cat1 | |cat1=Link | ||
|cat2 | |cat2=Sit | ||
|cat3 | |cat3=Link/Management | ||
|cat4 | |cat4 | ||
}} | }} |
Latest revision as of 15:16, 22 January 2015
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
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.
Caveats
Related Articles
Constants
• | PERMISSION_CHANGE_LINKS |
Functions
• | llAvatarOnSitTarget | |||
• | llBreakAllLinks | |||
• | llBreakLink | |||
• | llCreateLink | |||
• | llSitTarget | |||
• | llUnSit |
Events
• | changed |
Examples
default
{
changed(integer change)
{
if (change & CHANGED_LINK) //note that it's & and not &&... it's bitwise!
{
llOwnerSay("The number of links have changed.");
}
}
}