KiondraeLoc Posted April 16, 2019 Share Posted April 16, 2019 How can I get my avatar to immediately sit on a prim upon rez? I've looked at some of the sit functions and can't figure it out. Thanks. Link to comment Share on other sites More sharing options...
Wulfie Reanimator Posted April 16, 2019 Share Posted April 16, 2019 (edited) The only way for an avatar to automatically sit on anything is with an RLV command. http://wiki.secondlife.com/wiki/LSL_Protocol/RestrainedLoveAPI Quote Force sit on an object : @sit:<UUID>=force (*) Implemented in v1.10 Does not work if the user is prevented from sit-tping and further than 1.5 meters away, or when prevented from unsitting. BEWARE: genuine RLV viewers (Cool VL Viewer v1.26.20.28 and newer excepted) require that the seat got a sit-target defined (llSitTarget() LSL function), else the force-sit fails with a "No suitable surface to sit on" error message from SL server. RLVa viewers will succeed to sit the avatar on a sit-target-less seat, on the condition that the distance between the avatar and the seat is less than 8m. (*) Silently discarded if the user is prevented from doing so by the corresponding restriction. This is on purpose. To clarify, especially if you've never used RLV, these commands are used with llOwnerSay so the viewer can take action. string target_prim_uuid; llOwnerSay("@sit:" + target_prim_uuid + "=force"); Also to add; You can get the UUID of the rezzed object in the object_rez event, eg: default { state_entry() { // llRezObject } object_rez(key id) { llOwnerSay("@sit:" + (string)id + "=force"); } } Edited April 16, 2019 by Wulfie Reanimator Link to comment Share on other sites More sharing options...
Tactical UwU Posted April 16, 2019 Share Posted April 16, 2019 1 hour ago, Wulfie Reanimator said: Also to add; You can get the UUID of the rezzed object in the object_rez event, eg: default { state_entry() { // llRezObject } object_rez(key id) { llOwnerSay("@sit:" + (string)id + "=force"); } } This is partially incorrect. You usually want to put an llSleep(0.1); before the RLV command as doing it too quickly after the object is rezzed will cause it to fail. object_rez(key id) { llSleep(0.1); llOwnerSay("@sit:"+(string)id+"=force"); } Link to comment Share on other sites More sharing options...
Richardus Raymaker Posted April 16, 2019 Share Posted April 16, 2019 Someone made a jira feature request for lsl command. http://wiki.secondlife.com/wiki/LlSit but so far nothing is done with it by LL Link to comment Share on other sites More sharing options...
Wulfie Reanimator Posted April 16, 2019 Share Posted April 16, 2019 3 minutes ago, Richardus Raymaker said: Someone made a jira feature request for lsl command. http://wiki.secondlife.com/wiki/LlSit but so far nothing is done with it by LL Sadly, that page was created in 2010 and the related JIRA article is from 2007. Link to comment Share on other sites More sharing options...
Lucia Nightfire Posted April 16, 2019 Share Posted April 16, 2019 llSitOnLink() exists though. 1 Link to comment Share on other sites More sharing options...
Rolig Loon Posted April 16, 2019 Share Posted April 16, 2019 3 hours ago, Lucia Nightfire said: llSitOnLink() exists though. Yes, and it works fine as long as you are in an Experience. 1 Link to comment Share on other sites More sharing options...
SmacemanSpiff Grau Posted November 13, 2020 Share Posted November 13, 2020 I'm just starting to understand RLV, and want to know if this can be used for other avatars? Basically, if another avatar clicks on an object owned by me, can RLV force them to sit on another unlinked prim? I tried it with an alt, and when the alt clicked the object, it sat ME on the unlinked prim - which makes sense with the llOwnerSay() function. I tried it with llInstantMessage() function, but it just IMed the toucher the RLV text. Thanks! Link to comment Share on other sites More sharing options...
Rolig Loon Posted November 13, 2020 Share Posted November 13, 2020 RLV works as long as the person that is supposed to affected by it has RLV activated. Otherwise, no. Just like using llSitOnLink() will work fine as long as the person to be seated has accepted the Experience. Link to comment Share on other sites More sharing options...
KT Kingsley Posted November 13, 2020 Share Posted November 13, 2020 27 minutes ago, SmacemanSpiff Grau said: I'm just starting to understand RLV, and want to know if this can be used for other avatars? Basically, if another avatar clicks on an object owned by me, can RLV force them to sit on another unlinked prim? I tried it with an alt, and when the alt clicked the object, it sat ME on the unlinked prim - which makes sense with the llOwnerSay() function. I tried it with llInstantMessage() function, but it just IMed the toucher the RLV text. Thanks! RLV will work directly on the owner of an object issuing RLV commands using, as you say, llOwnerSay. In order for that object to use RLV on someone who isn't its owner they must be wearing an RLV relay: this listens to chat commands from the object and relays them, in turn, to its owner using llOwnerSay. The RLV relay protocol is decribed here: http://wiki.secondlife.com/wiki/LSL_Protocol/Restrained_Love_Relay/Specification. 1 Link to comment Share on other sites More sharing options...
SmacemanSpiff Grau Posted November 13, 2020 Share Posted November 13, 2020 Thanks, KT. That does make sense. I had read through the wiki but wanted to see if I was missing something. The whole concept is starting to get clearer in my head the more I look it over and read other blogs about it. Not exactly what I was looking for, but glad to get a little familiar with it. Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now