While @standtp=n is in force, the viewer remembers where the avatar was standing when it last sat down (its "last standing location"). When the avatar stands up, the viewer teleports it straight back there. This stops a captive sitting on something next to a wall and standing up on the other side.
@standtp=<n|y>
@standtp, and then unsit them; the victim stays in the cell (spec).@standtp while sitting doesn't clear the stored location (only removal while standing, or @clear while standing, does). In Marine, the stale location then survives in the per-account settings, and the next login teleports the avatar back to it even though no restriction is active any more.// In a cell: wearer can sit on the bench but can't use it to escape
llOwnerSay("@standtp=n,sittp=n");
mContainsStandtp (RRInterface.cpp:425). add() stores the position in mLastStandingLocation and in the per-account setting RestrainedLoveLastStandingLocation (RRInterface.cpp:1347-1353). remove() and clear() wipe it only while standing (RRInterface.cpp:1427-1430, 1537-1542).force_sit (RRInterface.cpp:1974-1984), LLAgent::sitDown (llagent.cpp:1633-1641) and handle_object_sit in llviewermenu.cpp.LLAgent::standUp() (llagent.cpp:1216-1238) and LLVOAvatar::sitDown(false) (llvoavatar.cpp:8080-8105). The latter covers stand-ups caused by the server, such as llUnSit or the seat being deleted. Both teleport only if mParcelLandingType == L_DIRECT, as set by the navigation bar (llnavigationbar.cpp:557-566). The teleport goes through teleportViaLocationLookAt with mSnappingBackToLastStandingLocation set, which skips the RLV checks and clears the stored location (llagent.cpp:4955-5000).backToLastStandingLoc() (mkrlinterface.cpp:2259-2295) only from the Stand button and menu, from @unsit=force, and at login. It has no hook for stand-ups started by the server (llUnSit, seat deleted), so those don't snap back in CoolVL.@standtp is still active (validateLastStandingLoc, llappviewer.cpp:1980-1990). That avoids Marine's stale-location relog teleport.teleportViaLocationLookAt isn't skipped for the snap-back (llagent.cpp:6720-6760), so a short @tplocal limit can stop the snap-back within the same region. Marine skips it.This command works differently from RLVa's @standtp; see the comparison.