Difference between revisions of "LlGetObjectPermMask"
Jump to navigation
Jump to search
Kireji Haiku (talk | contribs) m (fixed typo) |
Kireji Haiku (talk | contribs) m (removed second example script) |
||
Line 33: | Line 33: | ||
output += "transfer permissions"; | output += "transfer permissions"; | ||
// remember, neither | // remember, neither PERM_MODIFY only nor no perms at all is possible | ||
// | // items in Second Life either have PERM_COPY or PERM_TRANSFER at least | ||
return | return | ||
Line 57: | Line 57: | ||
llSay(PUBLIC_CHANNEL, "group" + getPermsAsReadableString(groupPerms)); | llSay(PUBLIC_CHANNEL, "group" + getPermsAsReadableString(groupPerms)); | ||
llSay(PUBLIC_CHANNEL, "everyone" + getPermsAsReadableString(everyonePerms)); | llSay(PUBLIC_CHANNEL, "everyone" + getPermsAsReadableString(everyonePerms)); | ||
// remove this script after having spammed local chat with info | |||
llRemoveInventory(llGetScriptName()); | llRemoveInventory(llGetScriptName()); | ||
} | } |
Revision as of 10:30, 25 November 2012
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: integer llGetObjectPermMask( integer mask );0.0 | Forced Delay |
10.0 | Energy |
Returns an integer that is the requested permission mask for the root object the task is attached to.
• integer | mask | – | MASK_* flag |
|
|
Examples
<lsl> string getPermsAsReadableString(integer perm) {
integer fullPerms = PERM_COPYNotes
The perms of a newly created object often are Base = PERM_ALL, Owner = PERM_ALL, Next = PERM_MOVE or PERM_TRANSFER, Group = 0 (none), Everyone = 0 (none). The perms2String example describes those perms as "Closed / Yes Transfer".