How would I animate multiple weapons for a fps? I was thinking I could use sockets (mount points) and several generic arm animations. Not sure though. What is the common way for doing this?
I suppose it depends on your game. What I would recommend is making the gun itself a skeletal mesh, so that things like magazines and bolts and hammers and stuff can be animated nicely in animation software. I would then animate the player and weapon together and export each set of animations separately; when you want to fire a specific animation, you can switch your player’s animation based on the currently-equipped weapon, then cast to that weapon and simultaneously call its corresponding animation so they sync up.
For my own part, I actually have weapon control bones for each weapon directly on my main character’s skeleton (basically the weapon skeletal mesh is a sub-skeleton within the main player skeleton) and I animate it this way, but that’s because I want weapons to be visible on the body of a third-person player and using direct socket attachment will pose problems for the movement of those weapons with the player (they often need to shift or bend slightly depending on where they’re worn).
For a first person game that’s probably overkill, but using skeletal weapons is probably your best bet. Using purely static weapons will take a lot of work, since you have to manually key socket reattachment inside UE4 for things like discarding an empty magazine or whatever, and I imagine it’s just easier to do with animation software than a whole bunch of notifies.