ah sorry my mistake... I am using a wireframe... my fault..

your two lines of code is good but it gives me problems...
for example if I parent the player to another actor it disappears and show me beginning position of the view.
I have a moving platform which when the player rides it I parent the player to it so it follows... it was okay when I was using wireframe, a little screen shake because when the player collides to the wireframe while riding the platform it shakes the screen.
when I used the codes you have and when the parent changes the view seems to go back to its beginning position... your code was much smoother than the wireframe method. I like it. Is there anyway you know I can fix the view change problem?