@sit has two forms. @sit=n stops the user sitting on anything, whether on objects (pie menu, double-click, "Sit here") or on the ground. @sit:<uuid>=force makes the viewer send a sit request for the object with that key, as if the user had chosen "Sit" on it.
@sit=<n|y>
@sit:<object_uuid>=force
@sit=n also blocks the forced forms, @sit:<uuid>=force and @sitground=force, from any object, including the one that issued the restriction.@unsit.@sittp and the seat is too far away. Neither client's force-sit code checks the @sittp distance. Both temporarily lift the issuing object's own @sittp around the request, but no code path tests that limit during a forced sit. In practice, @sittp from any object does not stop @sit:<uuid>=force.calcFocusOffset). The spec warns that genuine RLV needs the seat to have a sit target, otherwise the server answers "No suitable surface to sit on". CoolVL sends a zero offset, which works on seats without a sit target if they are within about 8 m.@unsit=force and @sit:...=force in the same command line or in quick succession. Give the server at least a second (spec).// Sit the wearer on this object (from a script inside the seat, via a relay or attachment)
llOwnerSay("@sit:" + (string)seat_key + "=force");
// Keep them there
llOwnerSay("@unsit=n");
// Stop them sitting anywhere else later
llOwnerSay("@sit=n");
force() handles sit at RRInterface.cpp:2018-2027. It temporarily removes the caller's sittp, calls force_sit() and re-adds sittp. force_sit() (RRInterface.cpp:1950-1996) returns early if the object is unknown, if the avatar is sitting under @unsit, or if contains("sit"). The @interact check is commented out. It stores the standing location under @standtp and sends AgentRequestSit.LLAgent::sitDown() (llagent.cpp:1622-1655, ground sit), enable_sit_object/handle_object_sit (llviewermenu.cpp:4813-4905), near_sit_down_point (llviewermenu.cpp:4985-5010) and the "Object Sit" enable check (llviewermenu.cpp:7680-7710). Each of these also checks @interact and, for objects, the @sittp distance.force_sit() (mkrlinterface.cpp:2184-2257) also refuses under @interact, does nothing if the avatar is already sitting on that same object, and sends a zero sit offset (see Caveats).@sit=force it pauses the command queue until the avatar is actually sitting, or for at most 1 second. An opposite @unsit=force, or an @unsit=n, that is processed in that window sets a "skip" flag that holds back the rest of the queue (mkrlinterface.cpp:1946-1990, 2019-2077). Marine has no such protection. In the code, the command that triggers the skip is still removed from the queue after handleCommand returns, so that particular @unsit=n or @unsit=force appears to be discarded rather than delayed. Also, the "sit pending" flag is only cleared once the avatar is actually sitting (or after a 1-second timeout that only runs once something has been skipped), so if a forced sit fails, the next @unsit=n may be dropped. Scripts should re-send @unsit=n after confirming the sit (e.g. with @getsitid).This command works differently from RLVa's @sit; see the comparison.