Items spawn on same coords
#5

Quote:

I do understand that issue now, to fix that, you shouldn't use random, but use the loop or mark the position that is already used.

Mind showing me an example so I can understand easier?

Quote:

But you haven't explained the use of "res" and the amount, should it be same OR random??

The 'amount' variable is simply the amount of said item that will spawn (ex. You have picked up 10 meat.)

'Res' is merely a random variable that determine which selection of items will spawn. I can't use anything that randomizes the items themselves as each item has a unique item type assigned to them since some of the items share the same object id. If an item doesn't use their unique item type id, they simply don't work.
Reply


Messages In This Thread
Items spawn on same coords - by DTV - 10.05.2015, 02:57
Re: Items spawn on same coords - by RoboN1X - 10.05.2015, 04:04
Re: Items spawn on same coords - by DTV - 10.05.2015, 05:00
Re: Items spawn on same coords - by RoboN1X - 10.05.2015, 07:09
Re: Items spawn on same coords - by DTV - 10.05.2015, 12:22
Re: Items spawn on same coords - by DTV - 10.05.2015, 20:53
Re: Items spawn on same coords - by DTV - 12.05.2015, 02:24
Re: Items spawn on same coords - by Joe Staff - 12.05.2015, 03:19
Re: Items spawn on same coords - by Joe Staff - 12.05.2015, 04:12
Re: Items spawn on same coords - by DTV - 12.05.2015, 06:18

Forum Jump:


Users browsing this thread: 1 Guest(s)