@acceptpermission=n makes the viewer auto-accept certain script permission requests. Despite its =n/=y form it is not really a restriction on the user: while any object holds it, permission requests that ask only for permissions RLVa is willing to auto-grant are answered "Yes" immediately, without a dialog.
RLVa auto-grants only two permissions:
PERMISSION_TAKE_CONTROLS, from any object;PERMISSION_ATTACH, only when the requesting object is owned by you and is not an attachment (that is, a rezzed in-world object that wants to attach itself).If the request also asks for anything else (animation, debit, teleport and so on), the normal permission dialog is shown.
@acceptpermission=<n|add>
@acceptpermission=<y|rem>
None. The behavior takes no option (RLV_OPTION_NONE). If you add one, for example @acceptpermission:foo=n, the command fails with an option error.
rlv_notify flag in the request. This makes the "permissions granted" notice appear in local chat, listing the permissions even if they aren't normally caution permissions.@acceptpermission is considered. PERMISSION_ATTACH is stripped when no attachment point can be attached to (for example under a global @addattach=n), and PERMISSION_TELEPORT is stripped under @tploc=n.// A cage that grabs the wearer's controls without a dialog
default
{
state_entry()
{
llOwnerSay("@acceptpermission=n");
llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS);
}
run_time_permissions(integer perm)
{
if (perm & PERMISSION_TAKE_CONTROLS)
llTakeControls(CONTROL_FWD | CONTROL_BACK, TRUE, FALSE);
}
}
RlvBehaviourGenericProcessor<RLV_OPTION_NONE>("acceptpermission", RLV_BHVR_ACCEPTPERMISSION) with no flags (rlvhelper.cpp:88).process_script_question() (llviewermessage.cpp:7570-7600). RlvUtil::filterScriptQuestions() runs first (rlvcommon.cpp:619-638). Then, if RLV_BHVR_ACCEPTPERMISSION is active and the object can be found, the TAKE_CONTROLS bit is cleared from the pending questions, along with the ATTACH bit when permYouOwner() && !isAttachment(). If no questions are left, the notification is force-answered with "Yes" and the payload's (already filtered) question set is granted.rlv_notify is consumed at llviewermessage.cpp:7240-7243 and 7360.This command works differently from RLV's @acceptpermission; see the comparison.