CODE
integer ani = 1;
string gAnimName = "animation here";
default{
touch_start(integer num_touch)
{
llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION);
}
on_rez(integer param)
{
llResetScript();
}
run_time_permissions(integer perm)
{
if (perm & PERMISSION_TRIGGER_ANIMATION)
{
if(ani){
llStartAnimation(gAnimName);
}
else
{
llStopAnimation(gAnimName);
}
}
ani=!ani;
}
}
That works fine, I can click on each button and they animate the av but I dont know how to stop them. I made a stop button as well and linked it, and added a stop all animations in a list but I'm still stuck in a pose.
Where did I go wrong? Or is there a better way to make a HUD?
Thanks in advance