i think a struct is a bad idea
it wont work, because the engine doesn't use pan tilt roll or x y z, it only uses the memory allocated by the size of three vars!
you can also write this:
Code:
function act_canon()
{
    VECTOR temp;
    VECTOR testvec;
    
    while(1)
    {
        vec_set(temp.x, you.x);
        vec_sub(temp.x, testvec.x);
        vec_to_angle(testvec.x, temp.x);
        
        ent_bonerotate(my, "canon", testvec);
        wait(1);
    }
}



you only need the .x if you use any sort of struct like an entity or view!
ao the code with the defined struct won't work!


Visit my site: www.masterq32.de