Skip to content
lsl.devlsl.devLSL Dev

CHANGED_ALLOWED_DROP

constant
Constant
integer CHANGED_ALLOWED_DROP = 0x40;

Object inventory changed because a user other than the owner (or the owner if the object is no-mod) added an item. This is only possible if enabled via llAllowInventoryDrop.

Constant groups

ChangeType

Other ChangeType values (12)

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.

Example 1
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.");
}
}
}
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.