Randomly Spawn Between Multiple Pre-Set Locations
iPhoneDevForMe
Member Posts: 362
So I have an actor that I am having randomly spawn to one of five different locations every couple seconds.
If an actor spawns in one of the 5 spots, I want to make sure that if the randomization will only select one of the other 4 spots.
In other words if an actor is in one spot, the actors will only spawn in the other 4, or if 2 spots are already taken, it will only spawn in the other 3 slots.
I've been playing around and cant figure it out. Any ideas? Thanks in advance!
If an actor spawns in one of the 5 spots, I want to make sure that if the randomization will only select one of the other 4 spots.
In other words if an actor is in one spot, the actors will only spawn in the other 4, or if 2 spots are already taken, it will only spawn in the other 3 slots.
I've been playing around and cant figure it out. Any ideas? Thanks in advance!
Comments