Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Animation Help, please

Yella Teichmann
Registered User
Join date: 27 Jul 2008
Posts: 6
10-28-2008 06:06
Hello,

So I'm trying to create a pose ball, where the avatar lies down when it sits on the ball. The only problem is the animation doesn't stay. It slowly moves into a lying-down position, but then goes back to a sitting position at the end. When uploading the animation, I ensure that it is in a loop from 99.99% to 100%, but this problem still occurs.

Here's my code, is there anything wrong with it?

default
{
state_entry()
{
llSitTarget(<0,0,.1>, llEuler2Rot(<0, 0, 0>;));
}

changed(integer change)
{
if(change & CHANGED_LINK)
{
if(llAvatarOnSitTarget() != NULL_KEY)
{
llRequestPermissions(llAvatarOnSitTarget(), PERMISSION_TRIGGER_ANIMATION);
}
}
}
run_time_permissions(integer perm)
{
if(perm & PERMISSION_TRIGGER_ANIMATION)
{
llStartAnimation("animation2.1_liedown";);
}
}
}


Thank you!
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
10-28-2008 07:08
try looping at 98-99% ?
_____________________
|
| . "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...
| -
Deira Llanfair
Deira to rhyme with Myra
Join date: 16 Oct 2006
Posts: 2,315
10-28-2008 07:28
The Ease-in and Ease-out times may be having an effect - you could try making your Ease-in and out times = zero and see if that makes any difference.
_____________________
Deira :)
Must create animations for head-desk and palm-face!.