Die Hard Simples - ESP

Posts 1–3 of 3 · Page 1 of 1
Die Hard Simples - ESP
I'm very to the point, so lets get to it.
I'll be releasing these 'simples'; little scripts that usually only do one or two functions.

The purpose is both to serve as a easy learning platform for new people learning how to write code, and to get my name known, and a rep. built. I also do custom script requests.

Most, if not all of my scripts will be accessible via scroll wheel.

If I have enough demand and thanks, I'll come back every few days and change up the variables for you.


Code:
die_menu_esp_v1 = player addAction ["Toggle ESP", {call diesp}];
die_menu_close_v1 = player addAction ["Close Menu", {player removeAction die_menu_esp_v1, player removeAction die_menu_close_v1}];

diesp = {

if(isNil "die_esp") then
	{
		die_esp = TRUE;
	} else {
		if!(die_esp) then
			{
				die_esp = TRUE;
			} else {
				die_esp = FALSE;
		};
};

if (die_esp) then {
	addMissionEventHandler ["Draw3D", {
	//onEachFrame {
		{
			if (player distance _x < 250) then
				{
				_pos = position _x;
				_pos = [_pos select 0, _pos select 1, 2.6];
					if(side _x != side player) then
						{
							drawIcon3D ["", [1,0,0,0.7], _pos, .1, .1, 45, (format ["%2:%1m",floor (player distance _x), name _x]), 1, 0.03, "TahomaB"]
						} else {
							drawIcon3D ["", [0,0,1,0.7], _pos, .1, .1, 45, (format ["%2:%1m",floor (player distance _x), name _x]), 1, 0.03, "TahomaB"]
						};
					};
				} foreach allunits;
		//};
	}];
} else {
	removeAllMissionEventHandlers "Draw3D";
};

};
This is a VERY simple ESP script.
It draws ESP on EVERY unit within 250m of you.

Enjoy.
Thanks for the release
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us