LlGetObjectPermMask: Difference between revisions
Jump to navigation
Jump to search
Kireji Haiku (talk | contribs) m restructuring |
Kireji Haiku (talk | contribs) m last edit for today....sorry, I need coffee |
||
Line 70: | Line 70: | ||
else if ((perm & PERM_TRANSFER) == PERM_TRANSFER) | else if ((perm & PERM_TRANSFER) == PERM_TRANSFER) | ||
output += "transfer"; | output += "transfer"; | ||
else if ((perm & PERM_MOVE) == PERM_MOVE) | |||
output += "move"; | |||
else | else | ||
output += "none"; | output += "none"; |
Revision as of 12:49, 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> if ((permsYouHave & permsYouWant) == permsYouWant)
llSay(PUBLIC_CHANNEL, "You have the perms you want.");
else
llSay(PUBLIC_CHANNEL, "You don't have the perms you want.");
</lsl> <lsl> integer ownerPerms = llGetObjectPermMask(MASK_OWNER);
integer copyAndModPerms = PERM_COPYNotes
The perms of a newly created object are often:
Base = PERM_ALL Owner = PERM_ALL Next = PERM_MOVE or PERM_TRANSFER Group = 0 (none) Everyone = 0 (none)