CBA_fnc_randomizeFacewear

Description

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};

Parameters

_unitunit <OBJECT>

Returns

true on success, false on error <BOOLEAN>

Examples

[unit] call CBA_fnc_randomizeFacewear;

Author

commy2

Close