I have a code, look this:
Code:
action oyuncu()
{
	wait(2);
	c_setminmax(me);
	my.skill10 = 1000;
	player = me;
	while(1)
	{
		if(mouse_left == 1 && atis_handle == 0 && mouse_right == 0)
		{
			mermi_at();
			atis_handle = 1;
			wait(-1);
			atis_handle = 0;
		}
		if(mouse_left == 1 && atis_handle == 0 && mouse_right == 1)
		{
			mermi_at_durbun();
			atis_handle = 1;
			wait(-1);
			atis_handle = 0;
		}
		mouse_pos.x = (1024 / 2);
		mouse_pos.y = (768 / 2);
		if(camera.pan < 135)
		{
			my.pan = 135;
		} else if(camera.pan > 225)
		{
			my.pan = 225;
		}
		if(camera.tilt > 45)
		{
			my.tilt = 45;
		} else if(camera.tilt < -45)
		{
			my.tilt = -45;
		}
		my.pan -= mouse_force.x * time_step;
		my.tilt += mouse_force.y * time_step;
		if(mouse_right == 1)
		{
		camera.x = my.x - 4000;
		camera.y = my.y;
		camera.z = my.z + 30;
		camera.pan = my.pan;
		camera.tilt = my.tilt;
		set(durbun_p, SHOW);
		} else {
		camera.x = my.x - 20 * cos(my.pan);
		camera.y = my.y - 20 * sin(my.pan);
		camera.z = my.z + 30;
		camera.pan = my.pan;
		camera.tilt = my.tilt;
		reset(durbun_p, SHOW);
		}
		wait(1);
	}
}



Which AUM have this example?

Last edited by WickWoody; 01/23/10 22:20.