Diagnostic
49 scripting commands. Also as Markdown for agents.
- diag_activeMissionFSMsReturns array with active Mission FSMs. To see number of all scripts currently in the scheduler use diag_activeScripts.
- diag_activeScriptsReturns 4 element array with numbers of currently running scripts
- diag_activeSQFScriptsReturns information about active SQF scripts. To see number of all scripts currently in the scheduler use diag_activeScripts.
- diag_activeSQSScriptsReturns array with active SQSs. To see number of all scripts currently in the scheduler use diag_activeScripts.
- diag_allMissionEventHandlersReturns an array with all mission event handlers.
- diag_captureFrameThis command starts counting frames from the moment it is executed and when the count reaches the number passed as param, the current frame is…
- diag_captureFrameToFileThis command starts counting frames from the moment it is executed and when the count reaches the number passed as param, the current frame is…
- diag_captureSlowFrameOpens "capture frame" dialog if current frame exceeds set threshold in seconds. One can indicate to either capture duration of a specific profiling…
- diag_codePerformanceAttempts to run given code with given arguments given number of cycles in unscheduled environment and returns average time it took to run the code as…
- diag_deltaTimeReturns the duration of the previous frame in seconds
- diag_drawModeActivates a debug visualisation.
- diag_dumpCalltraceToLogDumps current callstack/calltrace to RPT.
- diag_dumpScriptAssemblyDump script assembly.
- diag_dumpTerrainSynthReturns OutsideTerrain's current world's values.
- diag_dynamicSimulationEndEnds dynamic simulation data gathering and writes collected data into given (txt) file. The file is saved in the Arma 3 installation folder.
- diag_dynamicSimulationStartStarts gathering Arma 3: Dynamic Simulation diagnostic data.
- diag_enableToggles various diagnostics.
- diag_enabledChecks whether specific diagnostic mode is activated.
- diag_exportConfigExports given config into file of given path.
- diag_exportTerrainSVGLike the old TOPOGRAPHY cheat code, exports terrain, but in modern SVG format instead of the proprietary EMF format.
- diag_fpsReturns average framerate calculated over last 16 frames.
- diag_fpsMinReturns minimal framerate. Calculated from the longest frame over last 16 frames.
- diag_frameNoReturns number of frame currently displayed.
- diag_getTerrainGridReturns terrain cell size (size of each grid cell in the Heightmap).
- diag_getTerrainHeightReturns terrain height at the specified location.
- diag_getTerrainSegmentOffsetReturns the terrain segment. It is basically the same as:
- diag_lightNewLoadAllows loading of lighting config during the gameplay (effectively changing the current scene lighting). Filename path can be either absolute or…
- diag_listReturns an array of all diagnostic modes available in the game.
- diag_logDumps the argument's value to the report file. Each call creates a new line in the file.
- diag_mergeConfigFileUpdates config without restarting. Attributes and classes can not be deleted unless `delete` is used. Changes to the config are applied to all new…
- diag_recordTurretLimitsStart recording tool for creating turret aiming limits.
- diag_resetAnimsResets the animations system cache, so that animation makers can test their animations without restarting the game. A mission restart is required for…
- diag_resetShapesReload models on-the-fly without the need of restarting the game. Changes applied by diag_resetShapes are applied to all new entities so restart of…
- diag_scopeReturns script scope depth. When script is directly executed by the engine or a new script is added to the scheduler, the scope depth is 0. The…
- diag_setLightNewOverrides currently used scene lighting. The operand is config that is placed as a string (not file). The changes may not be applied immediately, but…
- diag_setTerrainHeightChanges the terrain height of the cell in which given position lies. This command is only available with Arma 3: Diagnostics Exe.
- diag_SQFCDebugDumpDumps the bytecode as Arma 3 sees it, in a diff friendly way. Useful for testing custom SQFC compilers.
- diag_stacktraceReturns an array containing the function name, line number, scope name and all local variables in form of a hashmap.
- diag_testScriptSimpleVMOutputs the provided SQF code's end code.
- diag_tickTimeReal time in seconds spent from the start of the game. On Windows the command uses timeGetTime.
- diag_toggleToggles various diagnostics.
- echoSends any text into the debugger console or the logfile. This command is only present in internal version not in the retail version. Use diag_log…
- enableDiagLegendEnable or disable the legend for diagnostics. Internal dev only!
- exportJIPMessagesCreates a log file containing an overview on all JIP (network) messages currently in the JIP queue. The file is created in the same directory as .rpt…
- isFilePatchingEnabledReturns true if file patching is enabled otherwise false
- logEntitiesCreates a log file containing the list of all game entities in scene. The file is created in the same directory as .rpt file.
- logNetworkRegisters new log file recording a network traffic and returns handle of the log. The log file is saved inside the Arma 3 root folder.
- logNetworkTerminateTerminates a network log file started with logNetwork with the given handle
- setCustomMissionDataDefines custom mission text that is sent to Arma 3: Analytics.