CrossFade with script?

I have a really annoying problem. I created an animation for throwing a grenade(first part of the picture) and set the arm position by script(so it stay in the sight of the character if looks up or down). If he now throws a grenade, his arm teleports to the startposition in the animation instead of going there smooth. How can I get CrossFade to fade the script-set position out, and the animation in?

Example Picture It should CrossFade from the start of the green arrow to the end of it.

1 Answer

1

animation.Crossfade() should work. But the way this should be done is to have the throw animation start with the arm in the normal position.