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.
@getcam_avdistmin=<channel>
A decimal number printed with six decimals (C++ std::fixed), e.g. 2.000000.
camdistmin and setcam_avdistmin restrictions. A restriction given without a value counts as 1.5.-1000000.000000 when no such restriction is active.(float)reply < 0, not by comparing strings.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.");
}
}
reallyHandleCommand() (RRInterface.cpp 1872-1876) from the cached mCamDistMin, and sent through answerOnChat() (2396-2451).mCamDistMin = getMax("camdistmin,setcam_avdistmin", -EXTREMUM). Later in updateCameraLimits() it is clamped to mCamDistMax (6411-6413). EXTREMUM is 1000000.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).
This command works differently from RLVa's @getcam_avdistmin; see the comparison.