Difference between revisions of "CHANGED SCALE"

From Second Life Wiki
Jump to navigation Jump to search
(added details for CHANGED_SCALE)
m (pre -> lsl)
Line 5: Line 5:
|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.
|examples=
|examples=
<pre>
<lsl>
default
default
{
{
Line 16: Line 16:
     }
     }
}
}
</pre>
</lsl>
|functions=
|functions=
{{LSL DefineRow||[[llSetScale]]|}}
{{LSL DefineRow||[[llSetScale]]|}}

Revision as of 16:21, 27 November 2008

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.

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>

Deep Notes

Search JIRA for related Issues

Signature

integer CHANGED_SCALE = 0x8;