Returns module-defined clickable cockpit elements.
Elements keyed by name, or undefined without a supported cockpit.
Returns a module-specific cockpit device.
Device ID.
Device, or undefined.
Returns a module-specific cockpit indicator.
Indicator ID.
Indicator, or undefined.
Creates a force-camera request from the current camera.
Current camera request, or undefined when no camera/player context is available.
Creates a force-camera request for a named user bookmark.
Bookmark name returned by LoGetUserBookmarks.
Camera request, or undefined when the bookmark is absent.
Applies a force-camera request locally.
Camera mode, target and optional transform.
Nothing.
Converts longitude/latitude to local DCS coordinates.
Decimal degrees.
Decimal degrees.
Local point in metres.
Returns body-axis acceleration in G units.
{x, y, z} acceleration, or undefined without ownship data.
Returns angular velocity in radians per second.
Body angular rates, or undefined without ownship data.
Returns HSI bearings, heading, course, and deviation in radians.
Current HSI state, or undefined without supported ownship data.
Returns engine, hydraulics, fuel-flow, and fuel data.
Current engine information, or undefined without ownship data.
Returns surface height including world objects. The function can be unavailable outside a supported simulation context.
Local northing in metres.
Local easting in metres.
Surface height, or undefined when unavailable.
Returns helicopter FM vectors and attitude.
FM data, or undefined when unsupported.
Returns the local multiplayer player's host ID and name.
Local player identity, or undefined outside multiplayer.
Returns targets currently locked by ownship.
Locked-target records, or undefined without sensor data.
Returns gear, flaps, canopy, and control-surface state.
Mechanization state, or undefined without ownship data.
Resolves a four-level world type to a name.
First classification.
Second classification.
Third classification.
Fourth classification.
Name, or undefined.
Returns aircraft-dependent navigation and ACS state.
Navigation data, or undefined when unsupported.
Reads one exported object.
Runtime world-object ID.
Object data, or undefined when unavailable.
Returns selected station, station stores, and cannon rounds.
Payload, or undefined.
Returns all connected multiplayer players.
Player identities, or undefined outside multiplayer.
Returns radio-navigation beacon locks.
Beacon status, or undefined without ownship data.
Returns the current route and next waypoint.
Route, or undefined when unavailable.
Returns ownship using the object-export schema regardless of world-object export settings.
Ownship, or undefined without a player aircraft.
Returns remaining chaff and flares.
Countermeasure counts, or undefined without ownship data.
Returns contacts detected by the targeting system.
Current target records, or undefined without sensor data.
Returns threat-warning mode and emitters.
Current TWS state, or undefined without sensor data.
Returns camera bookmarks for the current camera and unit type.
Bookmarks, or undefined when the camera has none.
Returns ownship world-axis velocity in metres per second.
Velocity, or undefined without ownship data.
Returns ownship wind velocity in world axes, metres per second.
Wind vector, or undefined without ownship data.
Returns the wind vector and absolute terrain height at a world point.
DCS returns four Lua numbers rather than an ExportVec3 table. Set
isRadioAltitude when y is height above the terrain instead of height
above sea level.
North/south local coordinate in metres.
Height in metres, interpreted according to isRadioAltitude.
East/west local coordinate in metres.
OptionalisRadioAltitude: boolean
Whether y is height above terrain. Defaults to false.
Wind velocity components x, y, and z in metres per second,
followed by absolute terrain height in metres.
Returns wingman positions, targets, and tasks.
Wingman records, or undefined without ownship data.
Returns target positions assigned to wingmen.
World-space points, or undefined without sensor data.
Returns world objects keyed by runtime ID.
Optionalcategory: "units" | "ballistic" | "airdromes"
Object set; defaults to "units".
Exported objects.
Converts local X/Z coordinates to latitude/longitude. DCS returns one table, not multiple Lua values.
Local northing.
Local easting.
Geographic coordinate record.
Sends a force-camera request to another host, or to every other host when hostId is zero.
Destination multiplayer host ID; use 0 to broadcast.
Camera request to send.
Nothing.
Enables or disables processing remote force-camera requests locally. It is disabled by default.
Whether remote requests may control this client's camera.
Nothing.
Sets the view camera transform.
Desired camera transform.
Nothing.
Global functions available to DCS
Export.luascripts.Remarks
Export availability functions reflect the server's anti-cheat/export settings. Ownship and sensor functions can also return
undefinedwhen there is no player aircraft or supported cockpit device. Experimental functions can change between DCS releases.See
%DCS_INSTALL_DIR%/API/Sim_ControlAPI.md:500
Version
2.9.29.27468
No Self