Difference between revisions of "CHANGED SHAPE"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
|value={{LSL Hex|0x4}} | |value={{LSL Hex|0x4}} | ||
|desc=Prim shape has changed | |desc=Prim shape has changed | ||
|examples | |examples= | ||
|functions | <pre> | ||
default | |||
{ | |||
changed(integer change) //reset script if inventory changes | |||
{ | |||
if (change & CHANGED_SHAPE) //note that it's & and not &&... it's bitwise! | |||
{ | |||
llOwnerSay("The prims shape has changed."); | |||
} | |||
} | |||
} | |||
</pre> | |||
|functions= | |||
{{LSL DefineRow||[[llSetPrimitiveParams]]|}} | |||
{{LSL DefineRow||[[llSetLinkPrimitiveParams]]|}} | |||
|events= | |events= | ||
{{LSL DefineRow||[[changed]]|}} | {{LSL DefineRow||[[changed]]|}} |
Revision as of 17:48, 1 March 2007
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 shape has changed
Caveats
Related Articles
Examples
default { changed(integer change) //reset script if inventory changes { if (change & CHANGED_SHAPE) //note that it's & and not &&... it's bitwise! { llOwnerSay("The prims shape has changed."); } } }