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
| Category | | Description |
| MASK_BASE | 0 | The base permissions. |
| MASK_OWNER | 1 | Current owner permissions. |
| MASK_GROUP | 2 | Active group permissions. |
| MASK_EVERYONE | 3 | Permissions everyone has. |
| MASK_NEXT | 4 | Permissions the next owner will have. |
| MASK_COMBINED | 16 | Include object inventory contents when calculating perms.
Combine with other mask flags, for instance MASK_OWNER|MASK_COMBINED | |
|
Caveats
- This function can only be executed in God Mode.
- If item is missing from the prim's inventory then an error is shouted on DEBUG_CHANNEL.
See also
Functions