Difference between revisions of "CHANGED SHAPE"

From Second Life Wiki
Jump to navigation Jump to search
m (<lsl> tag to <source>)
 
(4 intermediate revisions by 4 users not shown)
Line 3: Line 3:
|type=integer
|type=integer
|value={{LSL Hex|0x4}}
|value={{LSL Hex|0x4}}
|desc=Prim shape has changed
|desc=[[PRIM_TYPE]] (box, prism, torus, taper, twist, cut &hellip;) has changed.
|examples=
|examples=
<pre>
<source lang="lsl2">
default
default
{
{
Line 12: Line 12:
         if (change & CHANGED_SHAPE) //note that it's & and not &&... it's bitwise!
         if (change & CHANGED_SHAPE) //note that it's & and not &&... it's bitwise!
         {
         {
             llOwnerSay("The prims shape has changed.");
             llOwnerSay("The prim's shape has changed.");
         }
         }
     }
     }
}
}
</pre>
</source>
|constants=
{{LSL DefineRow||[[PRIM_TYPE]]|}}
|functions=
|functions=
{{LSL DefineRow||[[llSetPrimitiveParams]]|}}
{{LSL DefineRow||[[llSetPrimitiveParams]]|}}
{{LSL DefineRow||[[llSetLinkPrimitiveParams]]|}}
{{LSL DefineRow||[[llSetLinkPrimitiveParams]]|}}
{{LSL DefineRow||[[llSetLinkPrimitiveParamsFast]]|}}
{{LSL DefineRow||[[llGetPrimitiveParams]]|}}
{{LSL DefineRow||[[llGetLinkPrimitiveParams]]|}}
|events=
|events=
{{LSL DefineRow||[[changed]]|}}
{{LSL DefineRow||[[changed]]|}}

Latest revision as of 15:20, 22 January 2015

Description

Constant: integer CHANGED_SHAPE = 0x4;

The integer constant CHANGED_SHAPE has the value 0x4

PRIM_TYPE (box, prism, torus, taper, twist, cut …) has changed.

Caveats


Related Articles

Examples

default
{
    changed(integer change)
    {
        if (change & CHANGED_SHAPE) //note that it's & and not &&... it's bitwise!
        {
            llOwnerSay("The prim's shape has changed.");
        }
    }
}

Deep Notes

Search JIRA for related Issues

Signature

integer CHANGED_SHAPE = 0x4;