If you'd take a look at the manual, you'd notice that vec_set actually copies three values. So you can minimize your code a little bit:
Code:
vec_set(camera.x,my.x);
camera.z+=15;
vec_set(camera.pan,my.pan);