@getcam_avdistmax=<channel> replies with the maximum camera distance currently enforced through @setcam_avdistmax (and its deprecated synonym @camdistmax).

Syntax

@getcam_avdistmax=<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

The effective modifier value with three decimals, or an empty string when none is set. When several objects set a maximum, the smallest wins (minimum comparator).

Caveats

Examples

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

Implementation notes

See also

Comparison with RLV

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