@setcam_focus takes the camera off the avatar and points it at a target, placing the camera at a chosen distance and direction from it. It is a one-shot force command.

This is an experimental RLVa command. It exists only while the viewer setting RLVaExperimentalCommands is enabled (the default is on); the setting is read when the behavior dictionary is built at start-up.

Syntax

@setcam_focus:<target>[;<distance>[;<direction>]]=force

Parameters

target
Either the UUID of an object or avatar the viewer currently knows about (for an avatar the camera focuses on its head), or a region position x/y/z in the current region. An unknown UUID or unparsable value gives RLV_RET_FAILED_OPTION.
distance
Optional float, meters from the target. Defaults to the length of the object's scale vector for a UUID, and 0 for a position. Values at or near 0 are replaced by a tiny positive distance.
direction
Optional vector x/y/z (normalized) pointing from the target to the camera. Defaults to the direction from the target to the current camera position. Empty fields are allowed (uuid;;0/1/0).

Caveats

Examples

llOwnerSay("@setcam_focus:" + (string)llGetKey() + ";3;1/0/0=force");
llOwnerSay("@setcam_focus:128/128/30=force");

See also

Implementation notes

Comparison with RLV

RLV has no equivalent of this command.