LSL Wiki Mirror : llAllowInventoryDrop

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::
llAllowInventoryDrop(integer add)

If add is true, all users, even those who do not have modify permissions, can drop inventory items onto the object. If add is false the system forbids all users except those with modify permissions from dropping items onto the object.

The changed event handler is called with the CHANGED_ALLOWED_DROP flag when an item is dropped onto the object by a user that does not have modify permission. CHANGED_INVENTORY is passed to changed if someone with modify permission dropped the item.

To drop an inventory item onto/into an object, hold the Control key while dragging any inventory item onto the object (the object you're about to drop your item onto will be highlighted with a red frame). But for notecard drop, there is no need to hold the control key. Just drag and drop your notecard on which the object will be highlighted with a white frame.

The exception are scripts, attempting to drop a script onto an object which allows inventory drops will cause the object to shout "Not permitted to edit this!".

default
{
    state_entry()
    {
        llAllowInventoryDrop(TRUE);
    }
    changed(integer mask)
    {
        if(mask & (CHANGED_ALLOWED_DROP | CHANGED_INVENTORY))
            llWhisper(0, "My inventory has changed");
    }
}


Functions / Inventory
There are 7 comments on this page. [Display comments/form]