Difference between revisions of "CHANGED SCALE"
Jump to navigation
Jump to search
(Clarified the actual behavior, which we're pretty much stuck with (see SVC-2549 for reference)) |
m (<lsl> tag to <source>) |
||
Line 6: | Line 6: | ||
|caveats=*Changes in scale for child prims will trigger this event in the root. | |caveats=*Changes in scale for child prims will trigger this event in the root. | ||
|examples= | |examples= | ||
< | <source lang="lsl2"> | ||
default | default | ||
{ | { | ||
Line 17: | Line 17: | ||
} | } | ||
} | } | ||
</ | </source> | ||
|functions= | |functions= | ||
{{LSL DefineRow||[[llSetScale]]|}} | {{LSL DefineRow||[[llSetScale]]|}} |
Latest revision as of 15:19, 22 January 2015
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
Constant: integer CHANGED_SCALE = 0x8;The integer constant CHANGED_SCALE has the value 0x8
The prim scale of at least one prim in the linked object has changed. Only the root prim will receive this event.
Caveats
- Changes in scale for child prims will trigger this event in the root.
Related Articles
Functions
• | llSetScale | |||
• | llSetPrimitiveParams | – | PRIM_SIZE | |
• | llSetLinkPrimitiveParams | – | PRIM_SIZE |
Events
• | changed |
Examples
default
{
changed(integer change)
{
if (change & CHANGED_SCALE) //note that it's & and not &&... it's bitwise!
{
llOwnerSay("The prims size has changed.");
}
}
}