NullSystemWorks / mtadayz

Official MTA:DayZ Repository
Other
41 stars 35 forks source link

Adding loot spawns question #126

Closed KOPYk4T closed 6 years ago

KOPYk4T commented 6 years ago

Hi, i have a question about how i can add loot spawns.

I added some loot spawns in the cfgLoot.lua but it didn't worked there is no new loot... just the same

Love if you can help me or fix it

mtadayz commented 6 years ago

Every lootpoint has a chance to not contain any loot, this is to bring some variety into lootpoints.

init/loot/world_loot.lua is the file where those chances are being calculated. The actual code for that starts with this function: createPickupsOnServerStart. If you want to create your own lootpoints which spawn 100% of a time, I suggest you either write your own code or alter the existing one accordingly.