Necromancy Animal ESP
For all the hunters out there 
Code:
n51 =
{
n512 =
{
if (isNil 'n511') then {n511 = 0;};
if (n511 == 0) then
{
hint "Animal ESP ON";
n511 = 1;
n515 = [];
while {n511 == 1} do
{
_entities = (allMissionObjects "DZ_AnimalBase");
{
if !(_x in n515) then {
n515 = n515 + [_x];
[_x] spawn n513;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Animal ESP OFF";
n511 = 0;
};
};
n513 =
{
disableSerialization;
if (isNil 'n514') then {n514 = 2733;};
n514 cutRsc ['rscDynamicText', 'PLAIN'];
n514 = n514 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true; _ctrl ctrlEnable true; _ctrl ctrlSetFade 0;
_unit = _this select 0;
while {(!isNull _unit) && ((player distance _unit) < 1000)} do
{
if (n511 == 0) exitWith {n515 = n515 - [_unit];_ctrl ctrlShow false;_ctrl ctrlEnable false;};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2)];
_pos2D = WorldToScreen _pos;
if (count _pos2D > 0) then
{
_ctrl ctrlSetPosition [(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format ["<t size='0.25' color='#B7FF00'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n515 = n515 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n512;
};


