@setcam_unlock=n keeps the camera locked onto the avatar: the user can't Alt-click to focus elsewhere, orbit around objects, or zoom to an object. Since the simulator keeps a locked camera in line of sight of the avatar, this also stops looking through walls. It is a synonym of @camunlock.

Syntax

@setcam_unlock=<y|n>

Specification

Examples

llOwnerSay("@setcam_unlock=n");

See also

Implementation notes

Marine combines the two names into mContainsLockedCamera (RRInterface.cpp:455-459). The camera reset is at 650-654, which runs from refreshCachedVariable on both add and remove. Enforcement: llagentcamera.cpp:405, lltoolfocus.cpp:225, llfloatercamera.cpp:656, llviewermenu.cpp:7325.

Client differences

CoolVL resets the view only when the restriction is added (gAgent.resetView, mkrlinterface.cpp:1436-1440), and doesn't switch camera presets. It checks contains("camunlock") || contains("setcam_unlock") directly at the call sites.

Comparison with RLVa

No significant differences from RLVa's @setcam_unlock.