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

From Second Life Wiki
Jump to navigation Jump to search
m (changed | to /)
(additional explanation to permission range)
 
Line 2: Line 2:
|command=@acceptpermission|type=Exception
|command=@acceptpermission|type=Exception
|usage=@acceptpermission=<add/rem>
|usage=@acceptpermission=<add/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.
|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. Be aware that this command allows any object to request permissions without asking, even objects you don't own. Additionally, some viewers also disable the animation permissions popup if the avatar is seated.
|version=1.16
|version=1.16
|seealso=denypermission
|seealso=denypermission

Latest revision as of 11:15, 9 September 2010


@acceptpermission

Type

Exception

Implemented

Implemented since RLV version 1.16

Usage

@acceptpermission=<add/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. Be aware that this command allows any object to request permissions without asking, even objects you don't own. Additionally, some viewers also disable the animation permissions popup if the avatar is seated.


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>