Hello, I have kind of a niche question. I am making a game where you can upgrade your weapons by parts and want to know if it's possible to make multiple weapons share one object for a given part, via animations. For example, I have a part called 'shotgun_front_upgrade' that is always assigned to be in front of my shotgun via image point. It has three separate one-frame animations: One for when there is no front-upgrade, one for a silencer, and one for a cork (don't ask).
These two upgrades go to different guns (both are coincidentally shotguns), but I don't know how to set the animation back to 'Blank' when the upgrade is not visible (I.E., when the player has a different weapon out). I tried using an 'Else' statement seen here:
(the silencer upgrade)
But this only works for one gun. If I apply an Else statement to another gun, they override each other if the upgrades are enabled at the same time.
(for example, here is shotgun 2 with the silencer upgrade, shotgun 3 is on the right with no upgrade selected)
(upon enabling shotgun 3's upgrade, the Else statement applies to all other guns and the shotgun 2 upgrade is overridden)
So my question is: How do I make it so that the correct animation appears with the correct object in situations like this? And, if that's not possible for whatever reason, how would you recommend I go about making multiple upgrades for the same gun part?