- Home /
Best way to play reload animations for a gun??
I'm going to create a multi-use script where you can use the script multiple times for different weapons in my game. I will import animations that I will make later on, but my question is, is the best way to play the animations (one for full reload, something like reloading 4 rounds, then 3 then 2 then 1) is to use an ArrayList? I have no clue about arraylists, just saw them (don't know if they relate to [] array). I know I could just have like 8 or 10 variables with each one being a certain amount of ammo (each animation), but that will be sort of sketchy since the script may glitch if there aren't enough animations. What do you think the best way to go is? Also, how could I call the animation at a certain time (I'm using C#) with an ArrayList (in my case)? Would I do something like:
foreach(reloadAnim4 in reloadAnims)
reloadAnim4.Play();
I really don't have a clue. This may work but it will play everything (I think), so how would I find just #1 or 2?
Sorry for my stupidity, I guess (like I've said before) what do you think is the best idea?
Answer by nazia08 · Mar 15, 2014 at 05:48 AM
FAL is the best obviously. Can't say I've actually noticed any of the other gun's reload animations as anything special.
Your answer
Follow this Question
Related Questions
Random Gun Jam with Array 1 Answer
How do you import animations from Maya????!? 0 Answers
My animation barely moves with root motion. 1 Answer
animating multiple weapons with 2 arms 0 Answers
Gun script help 1 Answer