how to make a character have a weapon only in a specific animation
A lot of ways you could do it. You can use anim notify or custom event that can be triggered whenever you want the weapon to be equipped/visible.
You can either hide/unhide the weapon during the gameplay or you can use sockets for equip/un-equip weapon.