@setcam_avdistmax:<distance>=n keeps the camera within distance meters of the avatar. It is an exact synonym of @camdistmax: both names feed the same limit.
@setcam_avdistmax:<max_distance>=<y|n>
atof (non-numeric text gives 0). If the option is omitted, the value is taken as 1.5 m.camdistmax and setcam_avdistmax restrictions from all objects.llSetCameraParams) isn't constrained.llOwnerSay("@setcam_avdistmax:2=n"); // camera stays within 2 m
llOwnerSay("@setcam_avdistmax:0=n"); // locked in mouselook
updateCameraLimits (RRInterface.cpp:6338-6420): mCamDistMax = getMin("camdistmax,setcam_avdistmax", EXTREMUM), followed by the 0.75 × camdraw clamp and the min ≤ max fix-up. getMin (974-1006) treats an empty option as 1.5.cam or setcam triggers updateCameraLimits on add and remove (1307-1313, 1406-1408).No differences found between Marine's RLV and CoolVL in how the limit is computed (mkrlinterface.cpp:7529). Both viewers measure from a reference joint that can be chosen in a debug menu. Its camera clamp code wasn't compared line by line.
This command works differently from RLVa's @setcam_avdistmax; see the comparison.