Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Help rotation a sitting avatar needed

Brett Bjornson
Registered User
Join date: 8 Nov 2005
Posts: 25
01-18-2007 16:46
I have he following in a script:

//Set the sitting position and rotation.
vector sittingPosition = <0.0,0.0,0.1>;
vector sittingRotation = <0, 0, 0>;

llSitTarget(sittingPosition,llEuler2Rot(sittingRotation * DEG_TO_RAD));// Needed for llAvatarOnSitTarget to work

But, no matter what I change in the vector settings, the avatar remains in the same position.

This is for a rocking chair script. The seat of the chair is a box, rotated

x:180
y:273
z:180

and the script is attached to the seat, so when the avatar sits it is laying on its back, feet up in the air! I need to rotate the avatar forward ~90 degrees. Thanks for any help.
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
01-18-2007 18:06
Are you standing up and sitting down again after making changes?