Difference between revisions of "CHANGED ALLOWED DROP"

From Second Life Wiki
Jump to navigation Jump to search
m (<pre> -> <lsl>)
m (<lsl> tag to <source>)
 
(3 intermediate revisions by 2 users not shown)
Line 5: Line 5:
|desc=A user other then the owner (or the owner if the object is no-mod) has added inventory to the prim. This is only possible if enabled with [[llAllowInventoryDrop]].
|desc=A user other then the owner (or the owner if the object is no-mod) has added inventory to the prim. This is only possible if enabled with [[llAllowInventoryDrop]].
|examples=
|examples=
<lsl>
<source lang="lsl2">
default
default
{
{
    state_entry()
    {
        llAllowInventoryDrop(TRUE)// With this set to FALSE the drop (on a no mod object) will not be allowed.
    }                            // This means the allowance may be revoked by use of llAllowInventoryDrop(FALSE).
     changed(integer change)
     changed(integer change)
     {
     {
         if (change & CHANGED_ALLOWED_DROP) //note that it's & and not &&... it's bitwise!
         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.");
             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>
</source>
|constants=
|constants=
{{LSL DefineRow||[[CHANGED_INVENTORY]]|}}
{{LSL DefineRow||[[CHANGED_INVENTORY]]|}}

Latest revision as of 16:14, 22 January 2015

Description

Constant: integer CHANGED_ALLOWED_DROP = 0x40;

The integer constant CHANGED_ALLOWED_DROP has the value 0x40

A user other then the owner (or the owner if the object is no-mod) has added inventory to the prim. This is only possible if enabled with llAllowInventoryDrop.

Related Articles

Constants

•  CHANGED_INVENTORY

Functions

•  llAllowInventoryDrop

Events

•  changed

Examples

default
{
    state_entry()
    {
        llAllowInventoryDrop(TRUE)// With this set to FALSE the drop (on a no mod object) will not be allowed.
    }                             // This means the allowance may be revoked by use of llAllowInventoryDrop(FALSE).
    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.");
        }
    }
}

Deep Notes

Search JIRA for related Issues

Signature

integer CHANGED_ALLOWED_DROP = 0x40;