Open manual, learn! Take a look at "vec_add"!!
Simple example of vector with offset from "my" entity:
Code:
vec_set(cam_pos.x, vector(offset_x, offset_y, offset_z));
vec_rotate(cam_pos.x, camera.pan);
vec_add(cam_pos.x, my.x);

I'm not going to help you to add offset to those lines you've posted above.
You have no clue how they work, you just want to copy-post them and to be happy grin
But you won't be happy till you'll start learning! Open "camera.c" from rootfolder.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung