DCS Hornet – IFEI and UFC to external monitor

DCS version used: openbeta 2.5.5.37626

Note! Files edited in DCS game folder (…\Program Files\Eagle Dynamics\ DCS World\…) will be overwritten in every update. Make sure to have backups of your edits.

Open C:\Program Files\Eagle Dynamics\DCS World\Mods\aircraft\FA-18C\Cockpit\Scripts\IFEI\indicator\IFEI_init.lua
and add following lines in end of file:

--ViewportHandling
dofile(LockOn_Options.common_script_path.."ViewportHandling.lua")
update_screenspace_diplacement(1, true, 0)
try_find_assigned_viewport("F18_IFEI")

Open C:\Program Files\Eagle Dynamics\DCS World\Mods\aircraft\FA-18C\Cockpit\Scripts\UFC\indicator\UFC_init.lua

and add following lines in end of file:

--ViewportHandling
dofile(LockOn_Options.common_script_path.."ViewportHandling.lua")
update_screenspace_diplacement(1, true, 0)
try_find_assigned_viewport("F18_UFC")

Open your monitor setup file (in this example it is HornetMonitorSetuo.lua) from C:\Users\YOUR_USER_NAME\Saved Games\DCS\Config\MonitorSetup and add following lines after Viewports = { text:

F18_IFEI =
{
x = 1720; -- x starting location of IFEI
y = 700; -- y starting location of IFEI
width = 640; -- width of IFEI
height = 300; -- height of IFEI
}

F18_UFC =
{
x = 1920 + 600;  -- x starting location of UFC
y = 0; -- y starting location of UFC
width = 640; -- width of UFC
height = 440; -- height of UFC
}

Remember to check and edit locations and sizes of your views to get good results.