Hi!

A long time ago I picked smile up this code from the forum.
Many thanks to the person who posted it....It's coming back.

Code:
function pick_drop ()
{
	wait (1);
	i_counter += 1; 
	if ((i_counter % 2) == 1)  
	{
		while (mouse_left == 1) //the object is selected with the mouse
		{
			vec_set (temp_m, vector(mouse_cursor.x,mouse_cursor.y,194)); // play with the z position
			vec_for_screen(temp_m, camera);
			vec_set (my.x,temp_m.x); // entity and camera are the same
			wait (1);
		}
	}
	vec_set (temp_m.x, my.x);
	my.z += 10; // (20) 
	
	c_move(my,nullvector,nullvector, IGNORE_MAPS| ACTIVATE_TRIGGER | IGNORE_CONTENT | USE_AABB);

	if (event_type != EVENT_TRIGGER)
	{
		my.z -= 10; // 
		i_counter += 1;
	}
}


I used it alot and it worked for me

Hope this helps smile

Ottawa