Don't click here unless you want to be banned.

LSL Wiki : llGetObjectPermMask

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl338.us.archive.org
integer llGetObjectPermMask(integer mask)

Returns the requested permission mask for the root object the task is attached to.

Base permissions are the permissions the object has when it was given to the current owner. In theory, no other mask can have more permissions then the base. If they do, then this is a bug in permissions and should be reported.

Mask Value Description
MASK_BASE 0 Get the object's base permissions
MASK_OWNER 1 Get the permissions the current owner has.
MASK_GROUP 2 Get the permissions the object's active group has.
MASK_EVERYONE 3 Get the permissions everyone has on the object.
MASK_NEXT 4 Get the permissions the next owner has.
These are not bitflags! They can not be OR'ed.

Permissions Value (in hex notation) Value (integer) Description
PERM_ALL 0x7FFFFFFF 2147483647 Move/Modify/Copy/Transfer permissions
PERM_COPY 0x00008000 32768 Copy permission
PERM_MODIFY 0x00004000 16384 Modify permission
PERM_MOVE 0x00080000 524288 Move permission
PERM_TRANSFER 0x00002000 8192 Transfer permission

Note: ((PERM_COPY | PERM_MODIFY | PERM_MOVE | PERM_TRANSFER) != PERM_ALL). This is because there may (read as: will) be more permissions in the future.

Example:
default
{
    state_entry()
    {
        integer perm_mask = llGetObjectPermMask( MASK_NEXT);
        if(perm_mask & PERM_MODIFY) llSay(0,"The next owner will have modify permissions.");
        if(perm_mask & PERM_COPY) llSay(0,"The next owner will have copy permissions.");
        if(perm_mask & PERM_TRANSFER) llSay(0,"The next owner will have transfer permissions.");
    }
}


Compare with llGetInventoryPermMask.

Q: How do I set perm masks?
A: As of 1.6.1, you can't. There's a function to do so, llSetObjectPermMask, but it hasn't been completed for security reasons. At some point, it will probably be completed, but there has been no word on when that might happen.


This article wasn't helpful for you? Maybe the related article at the LSL Portal is able to bring enlightenment.

Functions | Permissions | Asset Permissions Jasa SEO Jasa SEO Murah Sepatu Online Toko Sepatu Online Sepatu Sepatu Murah Sepatu Safety Sepatu Futsal Cheapes Hostgator Coupon Link Booking Televisori offerte Notebook Offerte Berita Terkini Internet Marketer Muda Internet Marketer Indonesia Portatile Apple RDAnet Lorks Karikatur Bisnis Modal Kecil Bisnis UKM Berita Terbaru Iklan Baris Jasa SEO Jasa SEO Murah SEO Indonesia Konsultan SEO SEO Belajar SEO Kursus SEO Kursus SEO Murah Jam Tangan Casio Jam Tangan Casio Jam Tangan Murah Jam Tangan Grosir Baju Terbaru Grosir Baju Baju Terbaru Grosir Baju Murah Bisnis Online Belajar SEO Kerupuk Kerupuk kulit Social Bookmark Dofollow Social Bookmark Kumpulan Puisi Kirim Puisi bola hantu Penumbuh Rambut Penumbuh Rambut timbangan WBC Wonogiri Jasa SEO Murah Jasa SEO Jam Tangan Murah
There is no comment on this page. [Display comments/form]