Hi
I made a keychain with a hold animation and a acript to play the animation. The animation is priority 6, but still it seems to get overridden all the time (finger poses change with AO, animation stops after sitting on furniture, etc.)
Is there any way to ensure that the pose stays in place as long as the object is held. I assumed priority 6 would do it. The pose has an ease in/ease out animation, so not sure if restarting it on a timer would be such a good idea.
would love some help.
Here is the script I am using:
string animation_name = "hold";
default
{
// Whenever this object is attached or detached...
attach(key id)
{
if (id)
{ // If it was just attached, request permission to animate.
llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION);
}
else
{ // It's being detached...
if (llGetPermissions() & PERMISSION_TRIGGER_ANIMATION)
{ // If we have permission to animate, stop the animation.
llStopAnimation(animation_name);
}
}
}
// Whenever permissions change...
run_time_permissions(integer permissions)
{
if (permissions & PERMISSION_TRIGGER_ANIMATION)
{ // If permission to animate was granted, start the animation.
llStartAnimation(animation_name);
}
}
}