Blender animation

I was just wondering seeing this video:

. Can I make something like this for weapon?
Lest say i make the trigger to be pressed and then the hole weapon is being moved.
Can i make a script in unity sayin that if the input press lets say right click the animation is being played?
Ty for any help.

If I understand you right, the quick answer is yes. In implementation it’s not really any different than making a “jump” animation for a character, and have Unity play that when you hit the “space” bar. It will get complicated and possibly break if you are dealing with odd parenting and/or attaching GameObjects to an armature.