if(!%obj.isHupLeft)
{
%obj.playthread(3,shiftaway);
%obj.isHupLeft=1;
}
else
{
%obj.playthread(3,leftrecoil);
%obj.isHupLeft=0;
}
For some reason, even though I talk checked it to make sure the function was only being called once at a time, it plays the animation twice in rapid succession.