@setsphere_distmax is a parameter of @setsphere. It is stored as an ordinary restriction of the issuing object and only takes effect while that object (or, for mode 0, any object) also holds @setsphere=n.
@setsphere_distmax:<metres>=<n|force>
@setsphere_distmax:<metres>=y
Beyond distmax, pixels get strength valuemax if distextend has bit 1 set (the default), otherwise 0. When several objects set it for the same mode, the lowest value wins. The lowest distmax across all modes is also fed into RLV's general vision-restriction distance (mSetsphereDistMax, KKA-835), which is used together with @camdrawmax.
=force is treated exactly like =n, for RLVa compatibility. =y removes the restriction only if the option matches exactly. @setsphere=y from the same object removes all of its setsphere_* parameters.
llOwnerSay("@setsphere_distmax:6=n");
Read in RRInterface::updateSetsphere() (RRInterface.cpp:6762-6772) and passed to the RLVa-derived RlvSphereEffect (rlveffects.cpp, Kitty Barnett, LGPL) and the shader rlvF.glsl. The =force → add() mapping is at RRInterface.cpp:2377-2379.
Not implemented in CoolVL 2.09.29.30, which has no @setsphere support.
This command works differently from RLVa's @setsphere_distmax; see the comparison.