I have been stuck on this for a while. I have it so that "isKinematic" starts out as true for the enemy's rigidbodies until (you shoot its colliders and) it dies as a ragdoll. When it dies, "isKinematic" turnes false, and its animator turns off.
I'm having trouble because in order to make the enemy's walk animation play, "isKinematic" must = true, but also, if "isKinematic" = true, then I can't code it to move toward the player.
Also, I should probably let you guys know that I can't use the method where you make a parent for the enemy and put the walking code on that parent (for reasons too long to explain). I pretty much need it so that the code to make the enemy move is on the enemy game object that the animator is present on.
↧