Thanks, that is working.

But now I want to attach a key to it. If an user is pressing 5 the camera must be in a loop so that he follow the entity. Also if the user don't touch the button. I have the following code now:
Code:
action camera_ent
{
my.passable = on;
my.invisible = on;
while(1)
{
if(key_5 == 1) {
vec_set(my.x,machine.x);// your.x=your entity
my.z -= c_trace(my.z,vector(my.x,my.y,my.z-5000),ignore_me+ignore_you);
vec_set(camera.x,my.x);
camera.pan = my.pan;
camera.tilt = my.tilt;
camera.roll = my.roll;
}
wait(1);
}
}