@sittp=n limits how far away the user can sit. The user can't sit on an object unless the clicked point is closer than the limit, 1.5 m by default. This stops a caged avatar "sit-teleporting" through the bars onto something outside. Since API 2.9.20 a custom distance can be given. If several objects set @sittp, the smallest distance wins.

Syntax

@sittp=<n|y>
@sittp:<max_distance>=<n|y>

Parameters

max_distance
A distance in meters, parsed with atof. With no option, 1.5 is used. Text that isn't a number gives 0, which blocks every sit on an object.

Caveats

Examples

llOwnerSay("@sittp=n");      // 1.5 m
llOwnerSay("@sittp:4=n");    // allow sitting on things up to 4 m away (the smallest value still applies)
llOwnerSay("@sittp:4=y");    // remove that specific restriction

Implementation notes

Client differences

No differences in semantics found. CoolVL computes the same minimum (mkrlinterface.cpp:7447-7453) and checks it in its sit menu handlers (llviewermenu.cpp:6980-6995, 9030-9045) and in double-click TP (llagent.cpp:6730-6742).

See also

Comparison with RLVa

This command works differently from RLVa's @sittp; see the comparison.