I have similar and made it
I have several Guns that need to spawn correct bullet type:
I did it like this:
Object Gun with animations (gun1,gun2,gun3,etc)
Then:
Object Bullet with several animations (bullet1,2,3,etc)
Global Text variable (type of variable depends on what you are doing)
Guntype=gun.animationname
Then
If guntype="animationx"
set bullet animation = guntype
i had to use a variable for other reasons, you could even set animation to gun.animation on every tick
Hope this helps