By connecting DCS Mission Scripting lua environment and LotAtc Server you enable:

  • Instructor module with DCS

Installation / Configuration

DCS World modification

DCS Server owner need to patch a file in DCS World directory to enable external socket connection to LotAtc Server.

The file to modify is DCS World/Scripts/MissionScripting.lua, you have to add the line:


-- The following line must be added
dofile(lfs.writedir().."Mods\\services\\LotAtc\\lua utils\\lotatcMissionServer.lua")

Be careful, on each DCS update, this file will be reverted and you have to do the modification again, use OvGME or equivalent is certainly a good idea

Once done, no more modification EVEN if LotAtc Server is updated.

Mission script

If you want LotAtc Server interaction with your mission, you have to add the trigger DO SCRIPT and the line:



In this example, I load first Moose.lua, then add some radio item, then init LotAtcLink and then load my example.lua file that will use LotAtcLink and Moose.

Once done, no more need to modify Mission file even on LotAtc Upgrade, all is done in background for you

Dev Area


LotAtc Link provides a two-way communication with LotAtc Server. It is in early developpement but possibility are huge:

  • Moving IA
  • Create/Destroy any unit
  • Interact with lua mission flag

As LotAtc is always opened to others projects, the choice has been made to open this link to anybody in order for the interface to be implemented by any lua framework (pure DCS lua, Moose, Mist,…).

I hope that a community can be created around LotAtc Link in order to build fantastic mission with it!

Want to help ?

Join LotAtc Discord and join the #mission-lua-scripting channel!


When using LotAtcLink you have to connect your code to LotAtcLink callbacks:

See Saved Games\<DCS Instance>\mods\services\LotAtc\lua utils\example.lua as example.

Here is a complete example to make IA turning with LotAtc Advanced!

Here is a simple example to use with lotatcMissionServer
]]--"initializing My LotAtc Link example...")
local LCallbacks = {}
LCallbacks.command_status = function(env, msg)"LotAtcLink: have version ".. msg.version)
    local _s = string.format("trigger.action.outText('LotAtcLink is connected with LotAtc %s', 10 )", msg.version)
    local f, error_msg = loadstring(_s, "LotAtcLink")
    if f then
        setfenv(f, lotatcLink.mission_env)
        local success, result = pcall(f)
        if success then 
  "LotAtcLink: success")
  "LotAtcLink: failed")
   error_msg )
   result )
LCallbacks.command_order = function(env, msg)
    if msg.orders then"LotAtcLink: receive order")
        for i, order in pairs(msg.orders) do
  "------ Treat order")
  "   o" .. order.order_name )
            local _group = nil
            if order.group_name then
      "   o" .. order.group_name )
      "   o" .. order.unit_name )
                _group = GROUP:FindByName( order.group_name )
            if _group then
       "Found!" )
                if order.order_name == "object" then
                    loe_order(env,order, _group )
                elseif order.order_name == "delete" then
          "   o delete")

loe_order = function(env, order, _group)"   o" .. )"   o" .. order.value )
    -- Altitude
    if == "headingDeg" then
        loe_order_headingDeg(env, order, _group)
    elseif == "altitude" then
        loe_order_altitude(env, order, _group)

loe_order_headingDeg = function( env, order, _group ) "change heading to " .. order.value )
    FromCoord = _group:GetCoordinate()
    ToCoord = FromCoord:Translate( 1000000, tonumber(order.value) )
    RoutePoints = {}
    RoutePoints[#RoutePoints+1] = FromCoord:WaypointAirFlyOverPoint( "BARO", _group:GetVelocityKMH())
    RoutePoints[#RoutePoints+1] = ToCoord:WaypointAirFlyOverPoint( "BARO", _group:GetVelocityKMH())
    RouteTask = _group:TaskRoute( RoutePoints )
    _group:SetTask(RouteTask, 1 )

loe_order_altitude = function( env, order, _group ) "change altitude to " .. order.value )
    Route = _group:CopyRoute()
    for i, w in pairs(Route) do
        w.alt = tonumber(order.value)
lotatcLink.registerCallbacks( LCallbacks )
-----------------------------------------"My LotAtc Link initialized")
Callback Description Parameters
command_status First call when LotAtcLink is initialized data.version contains LotAtc Version used
command_order Call on each LotAtc Instructor command data.orders contains one or more orders to execute (see orders below)


A lua order object have:


Member Description
order_name “order”
group_name DCS Group name
unit_name DCS Unit name
property Property name that changes
value New value

Property can be:

Name Description
headingDeg new heading in degrees
altitude new altitude in meters
groundSpeed new ground speed in km/h


You export a DCS flag to LotAtc Advanced. It can be read and write directly from there.

Mission script must be initialized as described above then, you have to add the trigger DO SCRIPT and the line:

lotatcLink.registerFlag('1', 'reload', 'Reloading Scritpting')

Parameters are:

Parameter Description
id of the flag  
short name use for button text in LotAtc
description use for description text in LotAtc


Once registered, flag is displayed in LotAtc and reflect current status. If user click on the flag button in LotAtc, mission script will be updated.

A command order is also generated in LotAtcLink that you can used if you need it:


Member Description
order_name “flag”
number DCS flag id
value New value