So here is a quick question that I need for my project.

How do I approach having multiple animation for multiple weapon. What I mean is that I want for example a sword weapon which has different idle animation, run, and attack and for example I would want a gun as another weapon which has different set of animations. How can I do it so that when equipping the sword I have the sword animations and when equipping the gun I have the gun animations?

I work in 3D by the way

You need to make sure when you animate through the animation player they have separate tracks for your nodes or create animation player nodes for each of your equipped items to keep things more organised, then access these animation players in code depending on what weapon you have equipped.