Last active
February 24, 2022 04:48
-
-
Save X39/f149ef35484d6466fc4b to your computer and use it in GitHub Desktop.
ArmA 3, Show Playernames with Ranks on HUD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!isDedicated && hasInterface) then | |
{ | |
addMissionEventHandler ["Draw3D", { | |
{ | |
if(side _x == playerSide) then | |
{ | |
_dst = (_x distance player); | |
_size = 1 - (_dst / 100); | |
_pos = position _x; | |
_pos set[2, (_pos select 2) + 2.25]; | |
if(_dst < 50) then | |
{ | |
drawIcon3D [format["\A3\Ui_f\data\GUI\Cfg\Ranks\%1_gs.paa", rank _x], [1,1,1,1], _pos, _size, _size, 0, name _x, 0, 0.05 * (_size * 0.5), "PuristaSemibold"]; | |
} | |
else | |
{ | |
drawIcon3D [format["\A3\Ui_f\data\GUI\Cfg\Ranks\%1_gs.paa", rank _x], [1,1,1,1], _pos, _size, _size, 0, "", 0, 0, "PuristaSemibold"]; | |
}; | |
}; | |
false | |
}count ((position player) nearEntities ["CAManBase", 100]); | |
}]; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
do you know how to change the color?