Is this what you are looking for?

Code:
action angletocamera()
{
   VECTOR temppos;
   while(1)
   {
      vec_diff(temppos, camera.x, my.x);
      vec_to_angle(my.pan, temppos);

   wait(1);
   }
}
}



Last edited by painkiller; 09/17/10 14:16.

3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB