I created an own view called Sicht and some new variables:
VAR sicht_dist[3] = -20,0,20; //The dist form the view to the player
VAR sicht_ang[3];

Add this in your Action:

vec_diff(temp,nullvector,sicht_dist);
vec_to_angle(sicht_ang,temp);
vec_set(Sicht.x,sicht_dist);
vec_rotate(Sicht.x,my.pan);
vec_add(Sicht.x,my.x);
vec_set(Sicht.pan,sicht_ang);
ang_add(Sicht.pan,my.pan);

I hope I could help you.