I'm in need of a step by step for continuing with making a Pickup spawning system

So as it is now, the system is like this.

  • It’s designed to be a replicated pickup spawner for a networked multiplayer game
  • Currently a certain number (currently 3) are being spawned in at the start, at three randomly selected spawnpoints in the scene. These spawn points are part of an array and are replicated down.
  • Once a pickup is walked into, it is destroyed, but currently that’s how it stays.
  • What I want is for, when one is destroyed, a new one appears at a randomly selected spawn point that
    a. Doesn’t already have a pickup (that hasn’t yet been pickud up) spawned there, and.
    b. Isn’t the same spawn point as the one whose pickup up was collected

What the pickups do isn’t important for now. I just want to get the system working. Currently there’s nothing to check how many pickups are in the scene. It just spawns in three and that’s it.

The only reference to the spawnpoint’s transform is used as part of the spawning system (It checks if a random spawnpoint in the array has already spawned a pickup, and if it hasn’t it get’s its transform and uses it to determine the pickup’s location when it spawns), and it changes every time a pickup is being spawned.

Since the spawn points are part of an a array, manually getting their locations would ruin the points, plus I imagine there’s a better way of doing it.

Somebody please lend a hand if you know a way of doing it.