inside your Missions/Misc folder are the loot tables -
we are going to make a small edit to each, to show you how it's done, than you can run with it and make all the edits you wish..
at the top add
x=floor(random 5); //0-4
This is a random number generator between 0 and 4, essentially giving you 5 options of loot.
next, drop down a line and add the first loot option start
if (x == 0) then {
below this should be the default loot setup that was in the file..
After the loot setup, add
};
This closes the first loot setup option.
continue the process, and create up to 5 loot options (if you want to add more, change the top random number generator, but remember, it counts zero as a first number)
Question
MassAsster
If anyone is running the DayZ mission system ( http://opendayz.net/threads/release-dayzchernarus-mission-system.12169/ ) and would like more loot options or to randomize the loot a little more, this is for you.
inside your Missions/Misc folder are the loot tables -
we are going to make a small edit to each, to show you how it's done, than you can run with it and make all the edits you wish..
at the top add
This is a random number generator between 0 and 4, essentially giving you 5 options of loot.
next, drop down a line and add the first loot option start
below this should be the default loot setup that was in the file..
After the loot setup, add
This closes the first loot setup option.
continue the process, and create up to 5 loot options (if you want to add more, change the top random number generator, but remember, it counts zero as a first number)
Example : fillBoxesM.sqf
Link to comment
Share on other sites
16 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now