Difference between revisions of "CHANGED SHAPE"
Jump to navigation
Jump to search
Kireji Haiku (talk | contribs) m (added intra-wiki links and) |
m (<lsl> tag to <source>) |
||
Line 5: | Line 5: | ||
|desc=[[PRIM_TYPE]] (box, prism, torus, taper, twist, cut …) has changed. | |desc=[[PRIM_TYPE]] (box, prism, torus, taper, twist, cut …) has changed. | ||
|examples= | |examples= | ||
< | <source lang="lsl2"> | ||
default | default | ||
{ | { | ||
Line 16: | Line 16: | ||
} | } | ||
} | } | ||
</ | </source> | ||
|constants= | |constants= | ||
{{LSL DefineRow||[[PRIM_TYPE]]|}} | {{LSL DefineRow||[[PRIM_TYPE]]|}} |
Latest revision as of 15:20, 22 January 2015
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
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
Constants
• | PRIM_TYPE |
Functions
• | llSetPrimitiveParams | |||
• | llSetLinkPrimitiveParams | |||
• | llSetLinkPrimitiveParamsFast | |||
• | llGetPrimitiveParams | |||
• | llGetLinkPrimitiveParams |
Events
• | changed |
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.");
}
}
}