Difference between revisions of "CHANGED SCALE"
Jump to navigation
Jump to search
m (pre -> lsl) |
(Add SVC-2549) |
||
Line 4: | Line 4: | ||
|value={{LSL Hex|0x8}} | |value={{LSL Hex|0x8}} | ||
|desc=Prim scale has changed. Other prims in a linked object will not receive this event. If an entire link set is resized then only the root prim will receive this event. | |desc=Prim scale has changed. Other prims in a linked object will not receive this event. If an entire link set is resized then only the root prim will receive this event. | ||
|caveats=*Changes in scale for child prims will trigger this event in the root. | |||
|examples= | |examples= | ||
<lsl> | <lsl> | ||
Line 23: | Line 24: | ||
|events= | |events= | ||
{{LSL DefineRow||[[changed]]|}} | {{LSL DefineRow||[[changed]]|}} | ||
|issues={{Issues/SVC-2549}} | |||
|cat1 | |cat1 | ||
|cat2 | |cat2 |
Revision as of 17:45, 20 June 2010
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
Prim scale has changed. Other prims in a linked object will not receive this event. If an entire link set is resized then 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
<lsl> default {
changed(integer change) { if (change & CHANGED_SCALE) //note that it's & and not &&... it's bitwise! { llOwnerSay("The prims size has changed."); } }
} </lsl>