Then the only thing i can imagine right now would be a workaround with maybe
Use vec_for_vertex twice for 2 vertices, then substract the two vectors (vec_sub) to get the direction from one vector to another and align the gun using the resulting vector.
vec_for_vertex(tmppos1.x,tmp_parent,vertnum);
vec_set(my.x,tmppos1.x);
vec_for_vertex(tmppos2.x,tmp_parent,vert2num);
vec_sub(tmppos2.x,my.x);
vec_to_angle(my.pan,tmppos2.x);
Thats an example of one of my old projects, I modified the vector/variable names so you can understand what is what.
After the vec_to_angle you might have to add to pan or tilt to get the right alignment of the gun (depends of MED).
PS.: Dont be afraid to use vec_for_vertex and no-bones models for start, you can later change them with bone models without much coding.(If you make it clean)