Thnx for the tip! ^-^
But the other code isn't working \:\(
It still keeps the other one selected \:\(
Maybe cause i didn't store the entity and he doesn't know which one to remove ?
How can i put entity's in an array?

Could you help me put it in my script ?

this is the updated script
 Code:
//////////////////////////////
// Ingame Unit Control
//////////////////////////////
var Unit_Selected[30];
var own_unit;
var secondtry;
string bmp_selected, <Selected.bmp>;

function highlight_me()

{
		 if (event_type == event_click)
       {
       		play_random_snd_hfx();
       		if(own_unit==0)
       		{Selection();secondtry=1;}
       		
       }
	
	
       if (event_type == event_touch)
       {
               my.ambient = 100; 
       }
  
            
       if (event_type == event_release) {my.ambient = 0;}
       
}

function DoubleCheck()
{
	while(1) 
	{
		if(own_unit==1&&secondtry==1)
		{
			ent_remove(me);
		}
		wait(1);
	}
}

function Selection()
{
	if (!(own_unit == 1))
	{	
		me = ent_create (bmp_selected,vector (my.x,my.y,my.z-15 ),NULL);
		me.tilt = 90;
		own_unit = 1;
		while(!mouse_right)
		{
			me.pan +=-0.2;
			wait(1);
			if(mouse_right)
				{
					own_unit = 0;
					secondtry = 0;
					ent_remove(me);
				}	
		}
	}
	else
	{
		DoubleCheck();
	}
}

action my_unit

{
       my.enable_touch = on;
       my.enable_click = on;
       my.enable_release = on;
       my.event = highlight_me;
	
}
//////////////////////////////
// End
//////////////////////////////
 



-The Dragon's Eye is alway's watching you!-