Skip to content

Ambext/DCS-Scripting-Library

 
 

Repository files navigation

DCS-Scripting-Library

Provides a baseline Scripting Library for DCS for use in VS Code. This incudes Intellisense and auto code completion. You have the option to add other Environment by simply drag and droping the .lua file into the directory. What's unique about it is that you don't have to have other windows open or be imbeded in a project to access the features it provides.

DSE Demo

Features

  • Intellisense
  • Auto Code Completion
  • Links to Documentation
  • Singleton Functions
    • env
    • timer
    • land
    • atmosphere
    • world
    • coalition
    • trigger
    • coord
    • missionCommands
    • VoiceChat
    • net
  • Class Functions
    • Object
      • Scenery Object
      • Coalition Object
        • Unit
        • Airbase
        • Weapon
        • Static Object
    • Group
    • Controller
    • Spot
  • Enumerators
  • Server Functions
  • AI Tasks
  • Events

Instructions

  • Download and install VS Code. https://code.visualstudio.com/download
  • Download the Lua Language Server by sumneko using the VS Code Extention feature.
  • Downlad this git. Extract the contents to a safe location.
    • Example: F:\Github\DCS-Scripting-Library-main
  • In the Lua Language Server by sumneko Extention settings scroll down near the bottom where it says "Lua > Workspace: Library".
  • Click "Add Item" and insert the folder path from above.
    • Example: F:\Github\DCS-Scripting-Library-main
      • image
  • Open a new lua file.
  • Start typing atmosphere and you should see suggestions.
  • All done!

Bonus

You can add other libraries such as MIST, DCT, or CTLD by putting the .lua file in a "Lua > Workspace: Library" folder and then designating that folder as a library.

Acknowledgements

About

Provides a ready-made DCS Script Library with all of the basic functions, etc.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Lua 100.0%