@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:

If the request also asks for anything else (animation, debit, teleport and so on), the normal permission dialog is shown.

Syntax

@acceptpermission=<n|add>
@acceptpermission=<y|rem>

Parameters

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.

Caveats

Examples

// 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);
    }
}

Implementation notes

See also

Comparison with RLV

This command works differently from RLV's @acceptpermission; see the comparison.