Kyttn Tigerpaw
Registered User
Join date: 6 Mar 2008
Posts: 30
|
05-13-2008 18:55
i'm trying to learn scripting and animation. I started by trying to make a sit script and anime for my rocking chair. because I didn't want to add another prim I decided to put the script into the chair itself instead of a pose ball. well I have it working great but when I sit in the chair on of the legs disappears. Is that because it's the main prim and the sit pose is making it vanish? And if so, can I fix it?
|
Blaze Nielsen
Registered User
Join date: 24 May 2005
Posts: 276
|
do some scripting
05-13-2008 19:05
the script you put into your chair is obviously in the root prim and thats the leg disappearing. the script is set up to make the prim disappear when sitting and applies a transparent texture to it when sitting. a really sloppy way to fix it is to just copy the uid long string of numbers in the visible line (or texture name if you have it set up that way) and paste over the invisible uid number. bad fix, but will work  I'm sure a real scripter will give you the more proper hint.
|
Deira Llanfair
Deira to rhyme with Myra
Join date: 16 Oct 2006
Posts: 2,315
|
05-14-2008 01:56
Hi Kyttn,
Did you by any chance use a pose ball script in your rocking chair? These scripts sometimes have a feature to make the pose ball invisible - this might be why the chair leg disappears when you sit on the chair. The script may have a "show" or "hide" function and you might be able to use the "show" command.
_____________________
Deira  Must create animations for head-desk and palm-face!.
|
Viktoria Dovgal
…
Join date: 29 Jul 2007
Posts: 3,593
|
05-14-2008 02:25
In the script you are using, look for any lines using llSetAlpha(0) Kill those (and for completeness, the corresponding ones that set alpha back to 1).
[If you don't see anything like that, look for any llSetPrimitiveParams using PRIM_COLOR, but that would be unusual in a generic sit script.]
|