Enemy ragdoll spawns at first Unit position

For some reason my enemy ragdoll does not spawn at the enemy, but at the first Unit. Even if I kill the enemy with the second Unit, the ragdoll still spawns at the first Unit. It’s the correct ragdoll (the red one), though.

Do you have any suggestion, what I could have done wrong? I just can’t find anything…

Is the first unit at GridPosition 0,0 by chance?

Paste in your UnitRagdollSpawner script and we’ll have a look.

1 Like

How are you spawning the Ragdoll? Are you just doing Instantiate(ragdollPrefab); ? If no second parameter is given it will spawn on 0,0,0

1 Like

Sorry, silly me. I missed quite some code during the video. Probably it was too late while watching it. :wink:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms