Jump to content

{Request} {WIP} Dayz Lottery.


Recommended Posts

If (Lega_single_currency)then{
      _Pick1 = [Lega_prize_vehicles,Lega_prize_one,Lega_maxcash,Lega_gold,Lega_poor_prizes,Lega_med_Prizes,Lega_High_prizes,Lega_Legend_prizes] call bis_fnc_selectRandom;
}else{
      _Pick1 = [Lega_prize_vehicles,Lega_prize_one,Lega_gold,Lega_poor_prizes,Lega_med_Prizes,Lega_High_prizes,Lega_Legend_prizes] call bis_fnc_selectRandom;
};

if(_pick1 = Lega_prize_vehicles)then{
  _spawnvic = _pick1 call fnc_Spawn_Chosen_vehicle;
};

This is what I have so far for the loot Randomizer, the rest of the unfinished files are in the GitHub posted before updating as I go.

any help would be great. Maybe someone to collaborate with :D Thanks guys


Any Help would be greatly appreciated, I will have the money only version out later today,

 

if you could take a look https://github.com/Leigham/A2Lottery

GitHub is there.

Link to comment
Share on other sites

        _prizes = [_winnings, _Hmmwv];
        _win = [_prizes] call BIS_fnc_selectRandom;

 

the error likely comes from the _prizes array, as you do not have defined the variable _winnings.

 

also ,you can make the whole thing much easier. you dont have to declare so much variables.

for example:

 

_prizes = [_winnings, _Hmmwv] call BIS_fnc_selectRandom;

 

would also work.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...