hi i am extremely new to the programming side of unity.
i am more from the graphical side.
but i am working on a zombie game inspired by call of duty zombies.
the enemycontroller worked fine before but i wanted them to become a ragdoll when they die.
and since i added that part i get the error in this part of the script.
what am i missing and what do i need to change?
help i couldnt fix it myself.
or is there a better way to do it?
public void ragdollDeath()
{
gameObject ragDoll = Instantiate(ragdollDead, transform.root.transform.postition,
Quaternion.identity) as gameObject;
Transform ragDolMaster = ragDoll.transform.Find("master");
Transform enemyMaster = transform.root.Find("master");
Transform[] ragdollJoints = ragDolMaster.GetComponentsInChildren();
Transform[] currentJoints = enemyMaster.GetComponentsInChildren();
for (int i = 0; i
↧









