Difference between revisions of "LlAllowInventoryDrop"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
|caveats | |caveats | ||
|constants | |constants | ||
|examples | |examples=<pre> | ||
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."); | |||
} | |||
} | |||
} | |||
</pre> | |||
|helpers | |helpers | ||
|also_functions | |also_functions |
Revision as of 19:08, 6 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 permissions to add inventory items to a prim.
• integer | add | – | boolean, If TRUE allows anyone to drop inventory on prim, FALSE revokes. |
Caveats
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 |