add possibility to overwrite a units faction for determining name tags

This commit is contained in:
commy2 2016-06-28 23:43:34 +02:00
parent 01c184b174
commit ab2307996c

View File

@ -37,7 +37,7 @@ _fnc_parameters = {
_size = 1;
} else {
if (_drawRank && {rank _target != ""}) then {
_icon = GVAR(factionRanks) getVariable faction _target;
_icon = GVAR(factionRanks) getVariable (_target getVariable [QGVAR(faction), faction _target]);
if (!isNil "_icon") then {
_icon = _icon param [ALL_RANKS find rank _target, ""];
} else {