- Home /
Question about instantiate AI
In our game we have several "spawners" that spawn Capsules that act as enemy AI. Whenever we have tried to add a health and damage script, though, and have tried to kill the AI, all AI clones from the same spawners are also killed. I would assume this is because they are clones of one another, but how can we make it so that only one of the AI dies and not all of its clones? Is there an easier way to spawn AI?
Yes, I'd like to see the script. the Destroy(gameObject) part is what I'd be interested in.
Your answer
Follow this Question
Related Questions
Is there anything wrong with this script? It used to work but now it doesn't. 2 Answers
How to have a cloned/duplicated enemy react the same way the original does? 1 Answer
How to stop instantiate spawn ? 1 Answer
Why do objects keep spawning on top of one another? 0 Answers
problem with instance 1 Answer