Jump to content

Assigning zoom to an axis


jstnj

Recommended Posts

Posted

Hello!

Can anyone comment on whether this is possible in MSFS?

 

I want to bind the slider axis of the TM Warthog Throttle to zoom the view in the sim. I dont see any default variables to set the zoom, only ones to INC or DEC, which isn't what I need (I dont think?).

Any guidance is appreciated!

  • 4 weeks later...
  • Commercial Member
Posted

There are the following simulator variables that control zoom for these three cameras, and that can be read from and set too:

(A:COCKPIT CAMERA ZOOM, Percent)
(A:CHASE CAMERA ZOOM, Percent)
(A:DRONE CAMERA FOV, Percent)

There are various ways to assign them to an axis, but in the current retail version you need a script if you want to control it with a MIDI axis. 
Since you will probably want to control the zoom for all three cameras with a single slider, I would do this:
Script Group: Cameras
Script Name: Zoom
Script Code: (L:Cameras-Zoom) s0 l0 (>A:COCKPIT CAMERA ZOOM, Percent) l0 (>A:CHASE CAMERA ZOOM, Percent) l0 (>A:DRONE CAMERA FOV, Percent)

This script you assign to your axis using the "Select Event" box. Then you set Axis min to 0 and Axis max to 100

LORBY-SI

Archived

This topic is now archived and is closed to further replies.

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...