DCS singleton env

From DCS World Wiki - Hoggitworld.com
Revision as of 23:50, 15 November 2022 by Grimes (talk | contribs)


Singleton: env Added with: 1.2.0
Description: env contains basic logging functions useful for debugging scripting commands. The input text is automatically added to dcs.log in your saved games folder, default location: C:\Users\<<userName>>\Saved Games\DCS\Logs
Functions: info, warning, error, setErrorMessageBoxEnabled, getValueDictByKey
Enumerators and Other Data: The current mission's mission and warehouse file are accessible via the tables:
  env.mission
  env.warehouse 

Logs will display in the following format:


  |Timestamp||envType||Source of log|| Log Data 
  
   00104.229   INFO     SCRIPTING:     'message'
  
Notes: Lua syntax errors are automatically generated and placed in the dcs.log file.