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