Animation problem or bug.

I really dont get it in my other script it work all right but I have the same code for an other object and it doesnt run.

Heres the code

var gunModel : GameObject;
var animationRun : AnimationState;

Function Start(){
animationRun = gunModel.animation["Run"];
animationRun.layer = 1;
animationRun.wrapeMode = WrapeMode.Loop;
}

Function Update(){
animationRun.speed = 1;
}

Code works, there is no script error what so ever, but the animations doesnt play that what I dont get.

Hope somebody knows something about it.

Cheers!.

P.S Ok so I think I found my problem it haven to do that the speed only works on the defualt animation, how would I play non defualt animations using speed?

Have you tried something like this? animation.Play("Run");

Yes, but with speed with the input I can stop the animation the exact moment I stop the input so it doesnt have to wait until the animation is ended.