Replies with the current minimum distance, in meters, that the camera must stay away from the avatar. This is the combined result of every @camdistmin and @setcam_avdistmin restriction in force, from all objects.

Syntax

@getcam_avdistmin=<channel>

Return value

A decimal number printed with six decimals (C++ std::fixed), e.g. 2.000000.

Caveats

Examples

integer CH = -81234;
default
{
    state_entry()
    {
        llListen(CH, "", llGetOwner(), "");
        llOwnerSay("@getcam_avdistmin=" + (string)CH);
    }
    listen(integer c, string n, key id, string msg)
    {
        float d = (float)msg;
        if (d < 0) llOwnerSay("No minimum camera distance.");
        else llOwnerSay("Camera must stay at least " + (string)d + " m away.");
    }
}

See also

Implementation notes

Client differences

No differences in the reply format. Because the minimum is clamped to the maximum, and the two clients compute the default maximum differently (see @getcam_avdistmax), the clamp only differs when vision-sphere restrictions are in play. CoolVL also never answers on channel 0 (Marine answers channel 0 only for commands typed in its own RLV console).

Comparison with RLVa

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