I know this is an old thread but I am taking a shot since you were all so helpful. I am trying to freeze the end of a fall down animation without it looping. This is what I have below. I do not want these animations to loop. Just freeze at the end so that AV is laying flat on the ground from the "falldown" animation like I mentioned.
string anim ="drink";
string anim2 ="hold_R_handgun";
string falldown = "drunkfall";
integer cntr = 0;
integer checkit = 3;
default
{
attach(key victim)
{
if(victim == NULL_KEY)
{
llStopAnimation(anim);
llStopAnimation(anim2);
llSetTimerEvent(0);
}
else
{
llRequestPermissions(victim,PERMISSION_TRIGGER_ANIMATION);
}
}
run_time_permissions(integer permissions)
{
if (PERMISSION_TRIGGER_ANIMATION & permissions)
{
llStartAnimation(anim);
llStartAnimation(anim2);
llWhisper(0,"Finsih it up, every drop!");
llSetTimerEvent(15);
}
}
timer()
{
llStopAnimation(falldown);
llStartAnimation(anim2);
llStartAnimation(anim);
++cntr;
if (cntr > 2) {
cntr = 0;
llStartAnimation(falldown);
}
}
}