Difference between revisions of "LlAllowInventoryDrop"

From Second Life Wiki
Jump to navigation Jump to search
(clarified dropping inventory into no-mod prims)
m (updated lsl tags)
Line 10: Line 10:
*To upload a picture or a texture keep [ctrl] pressed and drag into / onto the prim
*To upload a picture or a texture keep [ctrl] pressed and drag into / onto the prim
|constants
|constants
|examples=<pre>
|examples=<lsl>
integer allow;
integer allow;


Line 28: Line 28:
     }
     }
}
}
</pre>
</lsl>
|helpers
|helpers
|also_functions
|also_functions

Revision as of 05:20, 11 February 2008

Summary

Function: llAllowInventoryDrop( integer add );

Allows for all users without modify permissions to add inventory items to a prim.

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

Ownership of the dropped inventory item changes to the owner of the prim, and next owner permissions are applied to the transfered inventory item.

Caveats

  • Scripts cannot be dropped by an agent 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!")
  • To upload a picture or a texture keep [ctrl] pressed and drag into / onto the prim
All Issues ~ Search JIRA for related Bugs

Examples

<lsl> 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.");
       }
   }

}

</lsl>

Notes

The user must have transfer permissions for the inventory item being dropped.

See Also

Events

•  changed CHANGED_ALLOWED_DROP

Deep Notes

Search JIRA for related Issues

Signature

function void llAllowInventoryDrop( integer add );