|
Dimentox Travanti
DCS Coder
Join date: 10 Sep 2006
Posts: 228
|
09-28-2006 07:17
Hey all, I wrote a script that changed sit to sleep and plays the sleep animation, but no matter which prim i put the sleep animation/script in it makes me sleep inside the bed LOL.
How do most do it w/o having a pose ball?
I see chairs w/o a pose ball that do many diff anims beds w/o etc.
_____________________
LSL Scripting Database - http://lsl.dimentox.com
|
|
Don Misfit
Registered User
Join date: 1 Jun 2006
Posts: 60
|
09-28-2006 07:51
You have to specify the "sit target" using llSitTarget(vector offset, rotation rot); See the wiki entry: http://www.lslwiki.com/lslwiki/wakka.php?wakka=llsittarget
|
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
09-28-2006 08:41
Don is quite correct...
It's worth mentioning it's a good way to get you pulling your hair out... but put in some offset so you can see yourself (even if under the bed), then adjust rotations, fiddling with one axis at a time, then tweak the offset.
I'm sure there's a clever way to do this fast, but every time I've done it, I end up tweaking the parameters for a while to get it right.
|
|
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
|
another trick
09-28-2006 09:33
A pose ball doesn't *have* to be a ball. For example, it can be an invisible rug that you put on the bed. When you sit on it, you sleep.
The advice about llSitTarget still applies.
|