Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

live repositioning avatars sitting on other objects

Phate Shepherd
Addicted to code
Join date: 14 Feb 2008
Posts: 96
06-15-2009 09:07
I have used the update_sit_target function from Strife Onizuka (and Escort DeFarge) to reposition avatars seated on my objects for quite some time, and it works quite well.

What I want to know is, if I sit on someone elses object (chair, car, whatever), is there any way to reposition myself using a script in one of MY attachments (hud, worn item, etc.)?

update_sit_target doesn't appear to work in that situation. In this situation, it only sees the link count of the object of my scripted attached, it doesn't see me, or any prim/object I am attached to.

I think the answer is no, but can't hurt to ask.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
06-15-2009 09:57
not that I'm aware of, since the sitpos change method uses set prim params, while the same function from within attachments can't target the wearer directly
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Cheree Bury
ChereeMotion Owner
Join date: 6 Jun 2007
Posts: 666
06-15-2009 10:46
I agree with Void. When you sit on an object, you become a child prim of that object. Only a script within that object can move you. No attachment can do it.
_____________________
Visit ChereeMotion - Life's Best Pinup Poses
http://slurl.com/secondlife/Wild%20Rice/38/230/51
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
06-15-2009 10:49
You could run an animation that moved the offset of your hip only. :)
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Phate Shepherd
Addicted to code
Join date: 14 Feb 2008
Posts: 96
06-16-2009 15:41
Thanks all, I kinda figured....

Argent... already got over 3000 animations in this thing.... how many more! AHHHG!