now it looks like this:

action wizard_with_pointer()
{
wizard = my;
my = player;
player.ambient = 100;
while(1)
{
//VECTOR speed;

player.pan += -50 * mouse_force.x * time_step;

player.x += -5 * (key_a - key_d) * time_step;
player.y += -5 * (key_s - key_w) * time_step;

c_move (my,nullvector,nullvector,IGNORE_PASSABLE | GLIDE);

vec_set(camera.x,player.x);

camera.x -= 100*cos(player.pan);
camera.y -= 100*sin(player.pan) - 150;
camera.z += player.z + 25;

camera.pan = player.pan;
camera.tilt = - 12;


wait(1);
}
}

but the camera still moves wrong and the engine doesn't find the pointed model.
Wheres my mistake?

Last edited by V_Sola; 02/08/09 19:59.