Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Stuck: How do I move a sitting avatar...

Marla Truss
Registered User
Join date: 15 Mar 2006
Posts: 197
04-08-2007 10:45
Ok, I'm stuck on this and am looking for ideas. How do I move a sitting avatar RELATIVE to the object the avatar is sitting on?

I've tried repositioning the sit position (llSitTarget) after the avatar sits down and I've tried sitting on a child prim and repositioning the child prim but neither technique works. I'm out of ideas.

I guess one possibility is to create an unlinked temporary object, sit on the temporary object and then use physics to move the unlinked object relative to the primary object, but I really don't like that solution.

Marla
_____________________
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
04-08-2007 11:49
CODE

llSetLinkPrimitiveParams( llGetNumberOfPrims(), [ PRIM_POSITION, Desired_Pos ] );
Where Desired_Pos is a vector representing the desired position of the Av relative to the root prim. Using llGetNumberOfPrims() for the link number will always identify the Av if only one is sitting on the linkset, since linked prim numbers begin with 1, and the Av will always be the last "prim" in the linkset. Use another method of determining a specific Av's link number if multiple Avs will be sitting on the same linkset.
Simil Miles
Creator
Join date: 1 Mar 2007
Posts: 300
04-08-2007 11:52
The avatar will only follow its seat if it's the root.
_____________________
UnConWTech @ Flo (144, 84, 224) http://unconwtech.free.fr

SL books http://astore.amazon.com/secondlife-sl-20/

Need a beta tester for quality assurance ?
Need a translator for English, French, Spanish ?
Marla Truss
Registered User
Join date: 15 Mar 2006
Posts: 197
Lovely
04-08-2007 15:56
Deanna,

Lovely. It works perfectly. Thanks.

Marla
_____________________