Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Problem truly halting an animation

Luciftias Neurocam
Ecosystem Design
Join date: 13 Oct 2005
Posts: 742
01-15-2007 18:41
I'm working on using a "hold_R_rifle" animation for a basic rifle. I have to halt it (and any other anims that might be playing) at one point
and I'm do so using this (excerpted from the lslwiki):

CODE
haltanims()
{
list anims=llGetAnimationList( llGetOwner());

integer len = llGetListLength(anims);
integer i;
for (i = 0; i < len; ++i) llStopAnimation(llList2Key(anims, i));

}


and it does appear to halt...but only after I move my avatar. If I don't move my avatar it remains in the preceding animation state.

Thoughts?
altic Plasma
Registered User
Join date: 15 Mar 2006
Posts: 118
01-16-2007 04:56
im new to scripting so probly gonna be wrong =)

how about starting another anim like stand or something after halting the rifle one ?
Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
01-16-2007 19:14
I agree with altic.
It is impossible that avatar looks in world without animation because even just standing is the result of standing animation. So when you stop all animations and doesn't play another at all, it cannot help but remain the last animation.
Usually standing animations come along cyclically though.
_____________________
:) Seagel Neville :)