In both viewers @setcam_avdistmax (and its older name @camdistmax) keeps the camera within a distance of the avatar in third-person view, and the smallest value from all objects wins. How a zero limit, a missing option and other camera limits are handled differs.
| Aspect | RLV (Marine) | RLVa (Firestorm) |
|---|---|---|
| Limit of 0 (or less) | Forces mouselook and keeps the user in it; a common way to lock mouselook. | Clamps the third-person camera to the head; does not force mouselook. RLVa uses @setcam_mode:mouselook=force and @setcam_mouselook for mouselook control. |
| Option omitted | Counts as 1.5 m. | Fails: the distance is required. |
| Measured from | A reference joint: the head by default, selectable in the RLV debug menu. | The avatar's head. |
| Interaction with other limits | Lowered to 75% of the vision-sphere radius when @camdraw* spheres are active; a larger minimum is lowered to it. | Ignored while any @setcam_origindistmin/max limit is set, unless min and max are equal (then the camera is slammed to that distance). |
@setcam holder | No such concept. | An object holding @setcam has its own value take precedence over all others. |
| Flycam | Switched off. | Not mentioned. |
@setcam_avdistmax:0=n for RLV together with @setcam_mode:mouselook=force (one-shot) for RLVa; RLVa still lets the user leave mouselook unless something else stops it.