@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.
@sittp=<n|y>
@sittp:<max_distance>=<n|y>
atof. With no option, 1.5 is used. Text that isn't a number gives 0, which blocks every sit on an object.distance >= max → refused. The distance is measured from the agent's position to the object position plus the clicked offset, i.e. roughly the point clicked.@sittp is active, whatever the distance (llagent.cpp:4970-4979). Teleports through the map and landmarks are not affected.@sit:<uuid>=force fails beyond the limit, but no force-sit code checks @sittp in either client. See @sit.sittp:3 is not the same as sittp). To lift a restriction, send exactly the same text with =y, e.g. @sittp:3=y.@sittp is active, Marine also stops the user editing the object they are sitting on, and moving things into its contents by drag-and-drop.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
updateLimits() (RRInterface.cpp:6911-6929) sets mSittpMax = getMin("sittp", EXTREMUM). getMin (RRInterface.cpp:974-1006) treats an empty option as 1.5. It is recomputed whenever sittp is added or removed (RRInterface.cpp:1327-1334).enable_sit_object (llviewermenu.cpp:4829-4838), handle_object_sit (4867-4875), the "Object Sit" enable check (7698-7706), and double-click TP in doTeleportViaLocationLookAt (llagent.cpp:4970-4979). Edit protections: llselectmgr.cpp:4363-4375 and lltooldraganddrop.cpp:1805-1815.sittp entry (not sittp:<n>) while they run.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).
This command works differently from RLVa's @sittp; see the comparison.