I am a programmer working with the free version of lite-c
I am making a game where you take control of a tank and can change the gun's direction using the arrow keys, and fire using space, using the code below:

action cannon()
{
var fire_percent;
var shooting = 0;
var cool = 0;
t_gun = me;
set(my,PASSABLE);
while (me)
{
cool -= 1;
if (key_cul)
{
my.pan += 1;
}

if (key_cur)
{
my.pan -= 1;
}

if (key_cuu)
{
my.tilt += 1;
}

if (key_cud)
{
my.tilt -= 1;
}
if (key_space)
{
if (cool <= 1)
{
ent_create("tank_bullet.mdl", vector (1000, 50, 7200000000000), shell); //create environment
shooting = 100;
fire_percent = 0;
cool = 75;
}
}
//////////////////////////////
if (my.tilt >= 78)
{
my.tilt = 78;
}

if (my.tilt <= -78)
{
my.tilt = -78;
}
//////////////////////////////
fire_percent += 4;
if (shooting >= 0)
{
ent_animate(my,"shoot",fire_percent, ANM_CYCLE);
shooting -= 4;
}
//////////////////////////////
vec_for_vertex(me.x, t_bod, 9);
wait(1);
}
}

The next step for me is to make it so when you press a specific key you zoom in to "cannon view"
I have tried some simple things with vec_for_vertex and camera.pan = my.pan etc...
But My problems were so convoluted I couldn't even explain them on the forum so I am asking for suggestions...
Thanks in advance
rtsgamer706