Add config defined weighted random facewear to unit.
CBA_facewearList[] = {}; // default: ignore and use facewear from BIS_fnc_unitHeadgear instead CBA_facewearList[] = {“”, 1}; // no facewear, delete and overwrite facewear from BIS_fnc_unitHeadgear
// 40% no facewear, 30% balaclava, 30% bandana. Weighted randomization: Sum of propabilites must not necessarily equal 1. CBA_facewearList[] = {“”, 0.4, “G_Balaclava_blk”, 0.3, “G_Bandanna_blk”, 0.3};
_unit | unit <OBJECT> |
true on success, false on error <BOOLEAN>
[unit] call CBA_fnc_randomizeFacewear;
commy2