The first thing I coded when I found out about that Draw3DLine function, was the same thing
Ha, couldn't resist!
onEachFrame {
{
if(side _x != side player) then {drawIcon3D ["", [1,0,0,0.7], position _x, 1, 1, 45, (format ["%2:%1m",player distance _x, name _x]), 1, 0.03, "default"]} else
{drawIcon3D ["", [0,1,0.5,0.4], position _x, 1, 1, 45, (format ["%2:%1m",player distance _x, name _x]), 1, 0.03, "default"]};
} foreach allunits;
_noobs = nearestobjects [player,["man"],100]; {if(alive _x) then {if(side _x != side player) then {if(player distance _x < 5 && _x iskindof "man" && side _x != civilian) then {player setdir ([player, _x] call BIS_fnc_dirTo);hint format ["WARNING %1 is %2 meters away!",name _x, player distance _x];
drawLine3D [[getposatl player select 0, getposatl player select 1, 1], _x, [1,0.2,0.3,(abs((((player distance _x)) - 100)/100))]]} else {drawLine3D [[getposatl player select 0, getposatl player select 1, 1], _x, [1,0,0,(abs((((player distance _x)) - 100)/100))]]};} else {drawLine3D [[getposatl player select 0, getposatl player select 1, 1], _x, [0,1,0,(abs((((player distance _x)) - 100)/100))]]};};} foreach _noobs; }
Now it is a proper ESP
Will mark people on your screen with their name and distance from you
P.S. It's near impossible to post, it always says that my IP was last seen posting here 45 seconds ago or something...
An Error Has Occurred!
The last posting from your IP was less than 45 seconds ago. Please try again later.
P.P.S. I wrote this yesterday but couldn't post it because of this, had to save this.