How do I play a different animation depending on the gun I'm holding?

Nati
Thu, 06 Oct 2022 20:12:20 +0000
Asset Creation

Let’s say I have a rifle, and a pistol in my game, and they each have different animations for every state (shooting, idle, etc…). How do I play the pistol shooting animation when holding the pistol, and the rifle one when holding the rifle? I need an easy way, so it will be easy to add guns in the future. Do you have any idea? Thanks!

3 posts - 3 participants