Didn't work for now. Now it's just one view straight ahead and don't follow the entity:

Code:
action camera_ent
{
my.passable = on;
my.invisible = on;

while(1)
{
if(key_e == 1) {
vec_set(my.x,machine.x);// your.x=your entity
my.z -= c_trace(my.z,vector(my.x,my.y,my.z+1000),ignore_me+ignore_you);
vec_set(camera.z,machine.z);
camera.pan = my.pan;
camera.tilt = my.tilt;
camera.roll = my.roll;
}
wait(1);
}
}