Spawning System Confused Meltdown!

Hi Guys!

Having a bit of a mare creating a spawning system.

Basically, I have a shop where the player can purchase say 5 items in any order they want. Once they have bought an item, an attribute is switched to say that this is ok to spawn.

so;

Player buys item 3, attribute 'OkToSpawnItem3' is set to true ... Same with all the others.

Now the spawner needs to be setup in certain ways;

Can only spawn 1 item at a time.
It selects from available items its ok to spawn at random.

e.g. Item1, 3 and 5 are purchased and allowed to spawn.
Spawner randomly selects between those and sends one out.

Item2 is now purchased so it needs to now carry on sending one out at a time but will pick from item1, 2, 3, and 5

etc etc

Any ideas?

Cheers

Comments

Sign In or Register to comment.