Difference between revisions of "User:Toy Wylie/RLV Documentation/acceptpermission"

From Second Life Wiki
Jump to navigation Jump to search
(first draft)
 
(moved to new template model)
Line 1: Line 1:
{{Template:RLV_Documentation/Command
{{Template:RLV_Documentation/Command
|@acceptpermission|
|command=@acceptpermission|type=Exception
Removes the permission dialog that normally comes up when an object asks for taking over the uer's controls or attach to the avatar. You still need to request permissions, of course. It does not override a possible @denypermission rule.
|purpose=Removes the permission dialog that normally comes up when an object asks for taking over the user's controls or attach to the avatar. Permission will always be granted. Your script still needs to request permissions. It does not override a possible @denypermission rule.
|[[User:Toy_Wylie/RLV_Documentation/denypermission|@denypermission]]
|usage=@acceptpermission=add, @acceptpermission=rem
|'''Note:''' This script only works if it's owned by the person to attach to.
|implemented=1.16
|seealso=[[User:Toy_Wylie/RLV_Documentation/denypermission|@denypermission]]
|example='''Note:''' This script only works if it's owned by the person to attach to.
<lsl>default
<lsl>default
{
{

Revision as of 12:06, 6 July 2010


@acceptpermission

Type

Exception

Implemented

Implemented since RLV version

Usage

@acceptpermission=add, @acceptpermission=rem

Purpose

Removes the permission dialog that normally comes up when an object asks for taking over the user's controls or attach to the avatar. Permission will always be granted. Your script still needs to request permissions. It does not override a possible @denypermission rule.


See Also

Example

Note: This script only works if it's owned by the person to attach to.

<lsl>default {

   on_rez(integer num)
   {
       llResetScript();
   }
   state_entry()
   {
       llOwnerSay("@acceptpermission=add");
   }
   touch_start(integer num)
   {
       if(llDetectedKey(0)==llGetOwner())
       {
           llRequestPermissions(llGetOwner(),PERMISSION_ATTACH);
       }
   }
   run_time_permissions(integer perms)
   {
       if(perms & PERMISSION_ATTACH)
       {
           llAttachToAvatar(ATTACH_RHAND);
       }
   }
}</lsl>