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

Syntax

@setcam_avdistmax:<max_distance>=<y|n>

Parameters

max_distance
Meters, parsed with atof (non-numeric text gives 0). If the option is omitted, the value is taken as 1.5 m.

Specification

Caveats

Examples

llOwnerSay("@setcam_avdistmax:2=n");   // camera stays within 2 m
llOwnerSay("@setcam_avdistmax:0=n");   // locked in mouselook

See also

Implementation notes

Client differences

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.

Comparison with RLVa

This command works differently from RLVa's @setcam_avdistmax; see the comparison.