From ab2307996c73ec74e54091ef0cf243c0696448cc Mon Sep 17 00:00:00 2001 From: commy2 Date: Tue, 28 Jun 2016 23:43:34 +0200 Subject: [PATCH] add possibility to overwrite a units faction for determining name tags --- addons/nametags/functions/fnc_drawNameTagIcon.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/nametags/functions/fnc_drawNameTagIcon.sqf b/addons/nametags/functions/fnc_drawNameTagIcon.sqf index a765f1b802..bfe065cf30 100644 --- a/addons/nametags/functions/fnc_drawNameTagIcon.sqf +++ b/addons/nametags/functions/fnc_drawNameTagIcon.sqf @@ -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 {