Difference between revisions of "LlAllowInventoryDrop"

From Second Life Wiki
Jump to: navigation, search
(more detail)
Line 3: Line 3:
 
|p1_type=integer|p1_name=add|p1_desc=boolean, If {{LSLG|TRUE}} allows anyone to drop inventory on prim, {{LSLG|FALSE}} revokes.|
 
|p1_type=integer|p1_name=add|p1_desc=boolean, If {{LSLG|TRUE}} allows anyone to drop inventory on prim, {{LSLG|FALSE}} revokes.|
 
|func_footnote
 
|func_footnote
|func_desc=Allows for all users without permissions to add inventory items to a prim.
+
|func_desc=Allows for all users without modify permissions to add inventory items to a prim. The user must have transfer permissions for the inventory item to be dropped. Ownership of the dropped inventory item changes to the owner of the prim and next owner permissions are applied. Scripts cannot be dropped onto a prim regardless of llAllowInventoryDrop state. If a user without modify permissions tries to drop a script into a prim that allows inventory drop then the prim will shout "Not permitted to edit this!"
 
|return_text
 
|return_text
 
|spec
 
|spec

Revision as of 22:21, 25 March 2007

Summary

Function: llAllowInventoryDrop( integer add );

Allows for all users without modify permissions to add inventory items to a prim. The user must have transfer permissions for the inventory item to be dropped. Ownership of the dropped inventory item changes to the owner of the prim and next owner permissions are applied. Scripts cannot be dropped onto a prim regardless of llAllowInventoryDrop state. If a user without modify permissions tries to drop a script into a prim that allows inventory drop then the prim will shout "Not permitted to edit this!"

• integer add boolean, If TRUE allows anyone to drop inventory on prim, FALSE revokes.

Examples

integer allow;

default
{
    touch_start(integer num)
    {
        llAllowInventoryDrop(allow = !allow);
        llOwnerSay("llAllowInventoryDrop == "+llList2String(["FALSE","TRUE"],allow));
    }
    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.");
        }
    }
}

See Also

Events

•  changed CHANGED_ALLOWED_DROP

Deep Notes

Search JIRA for related Issues

Signature

function void llAllowInventoryDrop( integer add );