Universal animation for all my guns??

Hello there!
I am creating a nice multiplayer FPS.
Currently I have all the guns sitting properly and the ability to aim down the sights using a lerp when they right-click.
However, I want to animate the gun so when you walk it bounces a little, and when u run it will turn to the side and run with the player.
Is there a way to script this (I use c# but JS will work too!) so that EVERY single weapon the player has, will do all these animations, when walking, it will bounce a little and when running it will run animation faster.
So basically it is like a universal animation for all my weapons.
Any help or information please?

Do you know how to play animations in the first place? I’d recommend just making two animations for the arm holding the weapon(one faster for running, one slower for walking) and blend between the two.
This is the docs primer on Animator Controllers

Hope that helps :slight_smile:

1 Like

Yeah I got it to work.
I just needed to make the animations for the hand, which ALL weapons are held by.
It was quite simple.
Thanks.

Right on. Glad it worked out. You posting your progress anywhere else in the forums? I’d love to see.