How can i turn my canon to the you position? I have a simplified version of my code below, please asume the you pointer is set..

What i basicly want to know is how to combine a vector and angle in one element like 'before' with wdl

Code:
function act_canon()
{
    var temp;
    VECTOR testvec;
    
    while(1)
    {
        vec_set(temp,you.x);
        vec_sub(temp,testvec.x);
        vec_to_angle(testvec.pan,temp);
        
        ent_bonerotate(my,"canon",testvec.pan);
        wait(1);
    }
}