Requires God Mode. This function can only be executed in God Mode.

Sets the given permission category to the new value on the inventory item.

Syntax

void llSetInventoryPermMask( string item, integer category, integer value );

Forced delay: 0.0 seconds. Energy: 10.0.

Parameters

string item
an item in the inventory of the prim this script is in
integer category
MASK_* flag
integer value (bit field)
Permission bit field (PERM_* flags)

Constants

CategoryDescription
MASK_BASE0The base permissions.
MASK_OWNER1Current owner permissions.
MASK_GROUP2Active group permissions.
MASK_EVERYONE3Permissions everyone has.
MASK_NEXT4Permissions the next owner will have.
MASK_COMBINED16Include object inventory contents when calculating perms.

Combine with other mask flags, for instance MASK_OWNER|MASK_COMBINED

PermissionsValueDescription
PERM_ALL0x7FFFFFFFMove/Modify/Copy/Transfer permissions
PERM_COPY0x00008000Copy permission
PERM_MODIFY0x00004000Modify permission
PERM_MOVE0x00080000Move permission
PERM_TRANSFER0x00002000Transfer permission

Caveats

See also

Functions