Merge pull request #4019 from acemod/customizable-faction

add possibility to overwrite a units faction for determining name tags
This commit is contained in:
Glowbal 2016-06-29 20:16:21 +02:00 committed by GitHub
commit a47168e31b

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 {