This is a deprecated synonym (BHVR_SYNONYM | BHVR_DEPRECATED). It still works and has exactly the same effect as @setcam_avdistmax. New scripts should use the setcam_* name.
While the restriction is active, the camera can't be moved further from your avatar's head than distance meters in third-person or follow camera mode.
@camdistmax:<distance>=<n|add|y|rem>
RLV_OPTION_MODIFIER). The bare form fails.RlvBehaviourModifierCompMin). If an object holds @setcam, only its values count.setcam_avdistmax is in the experimental set, but this synonym is not. @camdistmax keeps working with RLVaExperimentalCommands off. In that case the canonical name doesn't.llOwnerSay("@camdistmax:5=n"); // camera can't go further than 5 m from the head
// Pin the camera at 3 m:
llOwnerSay("@camdistmin:3=n,camdistmax:3=n");
RLV_BHVR_SETCAM_AVDISTMAX (rlvhelper.cpp:224). The modifier entry ("Camera - Avatar Distance (Max)", default F32_MAX) is at rlvhelper.cpp:201-202. Note that addModifier() isn't subject to the experimental filter in addEntry() (rlvhelper.cpp:376-404).RlvActions::getCameraAvatarDistanceLimits() (rlvactions.cpp:79-92) is used in LLAgentCamera::calcCameraPositionTargetGlobal() (llagentcamera.cpp:2175-2212). Distance is measured from the avatar's head joint.This command works differently from RLV's @camdistmax; see the comparison.