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.x);
        wait(1);
    }
}



untested, but I believe this works...

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/