Skip to content

Instantly share code, notes, and snippets.

@GeorgeDettmer
Created May 28, 2016 14:14
Show Gist options
  • Save GeorgeDettmer/353f8fc324094f49b7aa6ae294610cb8 to your computer and use it in GitHub Desktop.
Save GeorgeDettmer/353f8fc324094f49b7aa6ae294610cb8 to your computer and use it in GitHub Desktop.
addMissionEventHandler ["Draw3D", {
{
if (side _x == playerSide && {_x distance player < viewDistance}) then {
drawIcon3D [
'',
getArray(configFile >> "CfgInGameUI" >> "SideColors" >> "colorFriendly"),
[
visiblePosition _x select 0,
visiblePosition _x select 1,
(visiblePosition _x select 2) +
((_x modelToWorld (
_x selectionPosition 'head'
)) select 2) + 0.4
],
0,
0,
0,
name _x,
2,
0.03,
'PuristaMedium'
];
};
} count allPlayers - [player];
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment