Ok, i tried this
Code:
#include <acknex.h> // include these predefined, needed files in our project
#include <default.c>

ENTITY*box;
function force_power();
function pick_drop();
action forcebox();

function main()
{
	level_load("force_test.wmb");
	wait(1);
	mouse_mode = 4;
	while(1)
	{
		mouse_pos.x = mouse_cursor.x;
	  	mouse_pos.y = mouse_cursor.y;
		wait(1);
	}
}

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;
	}
}
/*
function force_power()
{
	if (event_type == EVENT_TOUCH)
 	{
		my.ambient = 100; // the make it look bright
	  	my.lightrange = 200; // and generate light on a radius of 200 quants!
	}
	else if(event_type == EVENT_RELEASE)
	{
		my.ambient = 0;
   	my.lightrange = 0;
	}
	if(event_type == EVENT_CLICK)
	{
		while(1)
		{
			if(mouse_left)
			{
				box.z = mouse_pos.z;
				box.x = mouse_cursor.x;
				box.y = mouse_cursor.y;
			//	camera.x = mouse_pos.x;	
			}
		}
	}
}
*/
action forcebox()
{
/*	box = me;
	my.emask |= ENABLE_TOUCH | ENABLE_RELEASE | ENABLE_CLICK;
   // run function highlight_event the wizards are touched or released
   my.event = force_power; 
   */
   if(mouse_left == 1)
   {
		pick_drop();
	}
}


I get errors for undeclared vars, i declared i_counter as an int var, but waht about the temp ones?


My Avatar Randomness V2

"Someone get me to the doctor, and someone call the nurse
And someone buy me roses, and someone burned the church"