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?