Hi,
I am trying to spawn a random object from a list of say 10 objects. But I want some items to spawn more frequently than others.
Let me give you an example.
Say I have 10 items
I want to spawn item1 1/20 times but item2 1/5 times and so on. Any suggestions on how to do that?
I would like to keep the spawning frequency as a property of the items. For example.
item1.spawFrequency = 1 --( Scale from 1 to 10)
I would love to hear your suggestions.
For now I have a spawn table to which I add the items that can be spawned, but all items can be spawned at the same frequency.
Thanks for your suggestions. [import]uid: 8192 topic_id: 13122 reply_id: 313122[/import]