How to set up random spawnpoints?

Hello

I want to set up aroud 20 spawn points on a map. I want them to spawn randomly on these spawnpoints, then disapear again after half a minute.

Is this possible? And if, how do i do this…

Please note that I’m pretty new to programing so please include scripts :smiley:

Nobody is going to write scripts for you. Go to www.unity3dstudent.com and teach yourself.

You can do something like the following…

1.) Create a spawnpoint prefab, that basically contains an empty gameobject, tag it as ‘SpawnPoint’.

2.) Create a SpawnManager script for your game, that when it starts, randomly places the
spawnpoints around your map, using Random.Range()

3.) In your GameManager script, get a list of all your spawn points using GameObject.FindGameObjectsWithTag(“SpawnPoint”)

4.) With that list of spawn points, simply pick a random one, then use GameObject.Instantiate to instantiate your enemy prefab on the random spawn point position.