- Home /
Why cant i get my animation to play?
So im making a networking game and for some reason i cant get the animation to play. Not even on my screen, but there are no errors or anything. The script im using is:
var reloadanimation : Animation;
var reloadName : String;
function Reload ()
{
reloadanimation.Play(reloadName);
yield WaitForSeconds(reloadtime);
canshoot = true;
}
Have you checked what the animation looks like in unity? It may have exported incorrectly or something. Does it work without the yield? Not sure why a yield would be an issue but worth a try.
Yea it works in unity. It works fine single player but doesnt work in networking.
Then what's different between single and network? Do you actually call Reload? Is it called as a coroutine (because if it's not, it'll kick out early)? Use Debug statements to make sure everything is what it should be.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
animation.Play isn't working 1 Answer
Climb animation is glitchy and isnt working properly 0 Answers
How to fix Animation 1 Answer
Why won't it run 1 Answer