Animation not switching

NerdinaNutshell

  • *
  • Posts: 173
I've been working on a game where if your weapon hits a pickup, it changes into what it hits and as such changes its animation. However, while I could get the function of the weapon to switch (pistol to a machine gun), the animation doesn't switch. This is completely baffling to me as I can't think of any reason it wouldn't work. I've attached my code below so you guys can help me out. Thanks.
Plot Twist... I'm a ghost

Bombini

  • *
  • Posts: 1280
Doesnt look like there is an error in this code. It must be somewhere else. Do you have another code which changes the animations? Is it a collision thing?

NerdinaNutshell

  • *
  • Posts: 173
Doesnt look like there is an error in this code. It must be somewhere else. Do you have another code which changes the animations? Is it a collision thing?
I got an error in the logs when I looked. So I checked the resources folder and found out something was just out of wack in there. It's fixed now thanks
Plot Twist... I'm a ghost