@setcam_avdistmax:<distance>=n keeps the camera at most distance meters from your avatar's head while in third-person or follow mode.

This is an experimental RLVa command. It exists only while the viewer setting RLVaExperimentalCommands is enabled (the default is on); the setting is read when the behavior dictionary is built at start-up.

Syntax

@setcam_avdistmax:<distance>=<n|y|add|rem>
@camdistmax:<distance>=<n|y>      (deprecated synonym)

Parameters

distance
Required float, meters.

Specification

How the clamp works (third-person and follow camera modes only):

Several objects: each object's value is kept separately (keyed by object and option text) and one value is chosen as the effective one: smallest maximum wins. Removing the restriction needs the same option text with =y; an object's values are also dropped when it releases all its restrictions.

Under @setcam: when an object holds @setcam it becomes the "primary object" for all camera modifiers, and its own value takes precedence over values from other objects, whatever the normal min/max ordering would say.

Caveats

Examples

llOwnerSay("@setcam_avdistmax:10=n");

See also

Implementation notes

Comparison with RLV

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