User:Toy Wylie/RLV Documentation/acceptpermission
Jump to navigation
Jump to search
@acceptpermission
Type
Exception
Implemented
Implemented since RLV version 1.16
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
- [[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 {
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>