Before updating to Windows 10 you may need to return your Pro license. More information here

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.

more ▼

asked Apr 11, 2011 at 06:51 PM

avatar image

142 36 32 38

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered Apr 11, 2011 at 07:12 PM

avatar image

Ben Holmes
348 7 7 19

But when I try the following, it simply acts like animation.Play: animation.CrossFade(WeaponchangeAnimation.name);

And when I give a time limit like 1 second, the arm bounces a little bit up and down, but nothing else happens. Why?

Apr 11, 2011 at 07:57 PM ShadowBroker
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments



asked: Apr 11, 2011 at 06:51 PM

Seen: 1627 times

Last Updated: Apr 11, 2011 at 06:51 PM