Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

fixing sit script so AV faces the right way

Temperence Dagger
Registered User
Join date: 26 May 2007
Posts: 14
05-31-2007 13:47
I put a sitting with legs crossed script into my chair. I sit, but face the side of the chair instead of facing forward. How do I correct this? I know nothing about scripting so whomever can help, you'll have to go step by step.. sorry
Milambus Oh
Registered User
Join date: 6 Apr 2007
Posts: 224
06-01-2007 06:22
From: Temperence Dagger
I put a sitting with legs crossed script into my chair. I sit, but face the side of the chair instead of facing forward. How do I correct this? I know nothing about scripting so whomever can help, you'll have to go step by step.. sorry


You can either:
1. Rotation the prim that the avatar is sitting upon.
2. Alter the animation that is being played.
3. Use llSitTarget) to rotate the player
http://lslwiki.net/lslwiki/wakka.php?wakka=llSitTarget
RJ Source
Green Sky Labs
Join date: 10 Jan 2007
Posts: 272
06-01-2007 08:53
If you're using a poseball, just rotate it (by hand is fine) until things work like you want.

If you are not, you might try that: create a little prim where you want the person to sit down. Make a script for that prim, that calls llSitTarget.
Add a llSetAlpha call in its state_entry so it is invisible.

Then you can just move and turn that prim by hand, or modify the rotation parameter in sittarget, until the person is sitting correctly.
Soen Eber
Registered User
Join date: 3 Aug 2006
Posts: 428
06-01-2007 11:50
Look in the scripting library for the easy sit target positioner. Someone's already cranked the code to make this an easy process.