arc

Angle that gives the horizontal field of view. It's default value of 60 degrees corresponds to the human eye. By decreasing this angle you'll get a telescope effect.

Range

-180 .. 180 (default: 60)

Type:

var

Remarks:

Example:

function sniper()
 {
   while(1)
   {
     if(mouse_right) // right mouse button pressed
     {
       camera.arc = max(camera.arc - time_step, 30);	 // reduce fiel of view
     }
     else
     {
       camera.arc = min(camera.arc + time_step, 90);    // increase fiel of view
     }
     wait(1);
   } 
 } 

See also:

VIEW, view.aspect, view.flags

► latest version online