I'm trying for the life of me to sort this, but it is late and I'm too bleary eyed to figure it out at this point. I'm trying to use the fn_selectRandomWeighted function to select a heli from a list.
_heliTypes =[
["B_Heli_Attack_01_F", .25],
["O_Heli_Attack_02_black_F", .25],
["B_Heli_Light_01_armed_F", 1],
["O_Heli_Light_02_F", 1],
["I_Heli_light_03_F", 1]
];
_vehicleClass = _heliTypes call BIS_fnc_selectRandomWeighted;
Do I need to convert this to two arrays, one of classnames and one of weights. Like:
helitypes = [[classnames],[weights]];
Thanks for the help, folks!