@getcam_avdist=<channel> replies with the current distance between the camera position and the avatar's position, in meters with three decimals (e.g. 3.271).

Syntax

@getcam_avdist=<channel>

Parameters

channel
Positive integer chat channel for the reply (channel 0 is accepted only from the RLVa console; DEBUG_CHANNEL is refused).

Return value

A decimal number formatted with %.3lf. It is the live, measured distance, not the @setcam_avdist setting.

Caveats

Examples

integer CH = 5151;
default
{
    state_entry()
    {
        llListen(CH, "", llGetOwner(), "");
        llOwnerSay("@getcam_avdist=" + (string)CH);
    }
    listen(integer c, string n, key id, string msg)
    {
        llOwnerSay("getcam_avdist: '" + msg + "'");
    }
}

Implementation notes

See also

Comparison with RLV

RLV has no equivalent of this command.