Difference between revisions of "CHANGED ALLOWED DROP"
Jump to navigation
Jump to search
m (<lsl> tag to <source>) |
|||
(9 intermediate revisions by 3 users not shown) | |||
Line 3: | Line 3: | ||
|type=integer | |type=integer | ||
|value={{LSL Hex|0x40}} | |value={{LSL Hex|0x40}} | ||
|desc=A user other then the owner (or the owner if the object is no-mod) has added inventory to the prim. | |desc=A user other then the owner (or the owner if the object is no-mod) has added inventory to the prim. This is only possible if enabled with [[llAllowInventoryDrop]]. | ||
|examples | |examples= | ||
|functions | <source lang="lsl2"> | ||
default | |||
{ | |||
state_entry() | |||
{ | |||
llAllowInventoryDrop(TRUE)// With this set to FALSE the drop (on a no mod object) will not be allowed. | |||
} // This means the allowance may be revoked by use of llAllowInventoryDrop(FALSE). | |||
changed(integer change) | |||
{ | |||
if (change & CHANGED_ALLOWED_DROP) //note that it's & and not &&... it's bitwise! | |||
{ | |||
llOwnerSay("The inventory has changed as a result of a user without mod permissions "+ | |||
"dropping an item on the prim and it being allowed by the script."); | |||
} | |||
} | |||
} | |||
</source> | |||
|constants= | |||
{{LSL DefineRow||[[CHANGED_INVENTORY]]|}} | |||
|functions= | |||
{{LSL DefineRow||[[llAllowInventoryDrop]]|}} | |||
|events= | |events= | ||
{{LSL DefineRow||[[changed]]|}} | {{LSL DefineRow||[[changed]]|}} | ||
|cat1 | |cat1=Inventory | ||
|cat2 | |cat2 | ||
|cat3 | |cat3 | ||
|cat4 | |cat4 | ||
}} | }} |
Latest revision as of 15:14, 22 January 2015
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
Constant: integer CHANGED_ALLOWED_DROP = 0x40;The integer constant CHANGED_ALLOWED_DROP has the value 0x40
A user other then the owner (or the owner if the object is no-mod) has added inventory to the prim. This is only possible if enabled with llAllowInventoryDrop.
Caveats
Related Articles
Examples
default
{
state_entry()
{
llAllowInventoryDrop(TRUE)// With this set to FALSE the drop (on a no mod object) will not be allowed.
} // This means the allowance may be revoked by use of llAllowInventoryDrop(FALSE).
changed(integer change)
{
if (change & CHANGED_ALLOWED_DROP) //note that it's & and not &&... it's bitwise!
{
llOwnerSay("The inventory has changed as a result of a user without mod permissions "+
"dropping an item on the prim and it being allowed by the script.");
}
}
}