Hey folks,
quickly threw together this little gem:
makes all existing rank icons available for use with the new UnitInsignia function.
description.ext:
from wherever you want you can call
{[_x,rank _x] call BIS_fnc_setUnitInsignia} foreach allunits;
to set the insignia according to the units rank.
Enjoy!
Script on serverside:
private ["_RANKICON"];
{
_RANKICON = [_x,"texture"] call BIS_fnc_rankParams;
if (_x isKindOf "B_Soldier_base_F" || _x isKindOf "I_Soldier_base_F") then
{
_x setObjectTextureGlobal [1, _RANKICON];
}
else
{
_x setObjectTextureGlobal [2, _RANKICON];
};
} forEAch allunits
CSAT units has more hiddenselections then USA / AAF