arc

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

Range

1..175, -1..-175 (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, aspect, view flags, left, right, up, down.

► latest version online