gaga11
Well-Known Member
got it working finallywould also love to see an option to add custom loot :X
--> http://pastebin.com/1MbrtmD6 (all credits to grafzahl)
_aaa = random _cntweights;
_index = floor(_aaa);
had to do that in 2 steps, else it would never pick items on higher positions in array, no idea why
customize here:
_itemTypes = [["NVGoggles", "weapon"], ["BAF_AS50_scoped","weapon"], ["Binocular_Vector","military"]]; //ADD LOOT HERE
_itemChance = [0.01, 0.01, 0.02]; //ADD THE CHANCES
chances should be values from 0.01 to 1