Difference between revisions of "LlAllowInventoryDrop"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
(more detail) |
|||
Line 2: | Line 2: | ||
|func=llAllowInventoryDrop|sort=AllowInventoryDrop | |func=llAllowInventoryDrop|sort=AllowInventoryDrop | ||
|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=Ownership of the dropped inventory item changes to the owner of the prim, and next owner permissions are applied to the transfered inventory item. | ||
|func_desc=Allows for all users without modify permissions to add inventory items to a prim. | |||
|return_text | |return_text | ||
|spec | |spec | ||
|caveats | |caveats=*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!" | |||
|constants | |constants | ||
|examples=<pre> | |examples=<pre> | ||
Line 32: | Line 33: | ||
|also_tests | |also_tests | ||
|also_articles | |also_articles | ||
|notes | |notes=The user must have transfer permissions for the inventory item being dropped. | ||
|permission | |permission | ||
|negative_index | |negative_index |
Revision as of 11:17, 26 March 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: llAllowInventoryDrop( integer add );176 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
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 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!"
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."); } } }
Notes
The user must have transfer permissions for the inventory item being dropped.
See Also
Events
• | changed | – | CHANGED_ALLOWED_DROP |