Hi,

Untested but should show a clear way out smile

Code:
action player_mouseAct()
{
	wait(1);
	c_setminmax(me);
	
	var variabel_1 = 1;

	VECTOR temp; 
	
	vec_zero(temp);
	
	ANGLE my_angle; 
	
	vec_zero(my_angle);
	
	while(1)
	{
		
		if(mouse_left==1){
			variabel_1 = 0;//unset on mouse click
			vec_set(temp,mouse_pos3d.x);//mouse_pos
			vec_sub(temp,my.x);
			vec_to_angle(my_angle,temp);
			my.pan = my_angle.pan;
			vec_set(temp,mouse_pos3d.x);
			temp.z = my.z;
		}
		
		
	if(variabel_1 !=1){wait(1);}
//alternatly; if((variabel_1 !=1) && (vec_dist(my.x,temp) > 0.5)){wait(1);}		
		
			if(vec_dist(my.x,temp)<=0.5) 
			{
			variabel_1 = 1;//set on trigger range
			c_move(me,vector(10*time_step,0,0),nullvector,IGNORE_ME|IGNORE_PASSABLE|GLIDE);
			}
		

			
		wait(1);
	}
	
} 


Hope it helps...


Use the 'manual' Luke, the manual is your friend. 'Self reminder' smile

My WebPage