random spawn points per round
I am making a zombie game in this I want the zombies to find my player I have a script that ensures different spawn points for my zombies and also I have a script that randomizes these spawn points
so can you help me with a script that can help me use different spawn points for different levels
for example I have a spawn point 1 2 3 4 how can I use 1 and 2 for the first round 3 and 4 for the second round 1 and 3 for the 3 rd round etc
If you talk levels, do you mean loading different scenes? If so, just have the script in each scene and assign different spawn points as needed. If not, you could create a list of lists of gameobjects.the outer list can be indexed to refer to the current scene (0 is level 1), while the inner holds integers for indexing into another list of all spawn points.
no not different scenes its like 1 level 10 zombies then another level 10 zombies
Your answer
![](https://koobas.hobune.stream/wayback/20220612072554im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Replace dead npc with ragdoll ? 0 Answers
How to: Dont spawn on other objects ? 1 Answer
Having multiple spawn/starting points in one scene 0 Answers
Multiplyaer FPS sprint speed does not work 1 Answer
script enable=false 3 Answers