i have an issue where in this instance i have a knife weapon but it has multiple animations so i use and instance variable like knife.type but it is not switching the animation
Develop games in your browser. Powerful, performant & highly capable.
Here there, instead of knife.type, use self.type, so it picks the correct instance of the knife, see if that fix the problem
Also I recommend to use Timer behavior for the knife instead of a wait action, it's an extra event but it prevents a lot of potential issues with how Wait works