@camdistmax keeps the camera within a given distance of the avatar.
A value of 0 forces Mouselook.
@setcam_avdistmax is a synonym: both names feed the same limit.
@camdistmax:<distance_m>=<y/n>
camdistmax and setcam_avdistmax.atof(); an omitted option counts as 1.5 and non-numeric text counts as 0.@getcam_avdistmax reports 750000.000000; CoolVL reports 1000000.000000.llOwnerSay("@camdistmax:2=n"); // camera no further than 2 m
llOwnerSay("@camdistmax:0=n"); // Mouselook only
add()/remove(); any behavior starting with cam or setcam triggers updateCameraLimits() (RRInterface.cpp:1306-1314, :1418-1420), which recomputes every limit from scratch (:6338-6500) and then calls checkCameraLimits(true) (:6312-6336).getMin()/getMax() (:940-1006).checkCameraLimits() RRInterface.cpp:6312-6336, plus llagentcamera.cpp:1714-1720
and the many mCamDistMax > 0 guards in llagentcamera.cpp:2393-2656.llagentcamera.cpp:2153-2178, using getCamDistDrawFromJoint() RRInterface.cpp:6648-6658
(joint chosen through the RLV menu handlers in llviewermenu.cpp:6566-6590).llviewerjoystick.cpp:1428-1436, llviewermenu.cpp:3328.mkrlinterface.cpp:7529-7560, llagent.cpp:3842-3866) behaves the same, except that it only applies the
75 % rule when a camdraw limit is actually set (so its unrestricted value stays at 1000000) and only runs the distance clamp when a distance
limit is set.This command works differently from RLVa's @camdistmax; see the comparison.