# System (scripting commands)

- [addLiveStats](../../commands/addLiveStats.md): Adds score to the Xbox Live Statistics score for the given unit (or the commander unit of the given vehicle).
- [allExtensions](../../commands/allExtensions.md): Returns information about all loaded Extensions
- [armoryPoints](../../commands/armoryPoints.md): Returns, stored in [USERNAME].ArmaXProfile, value of *armoryPoints* entry. If the entry doesn't exist, it returns 0.
- [benchmark](../../commands/benchmark.md): Returns the value of "3D Performance" in OFP Preferences (flashpoint.cfg). This can be used to estimate the computer performance to adapt CPU and GPU demanding settings like view distance dynamically in missions.
- [buldozer_enableRoadDiag](../../commands/buldozer_enableRoadDiag.md): Enables road diagnostics in buldozer.
- [buldozer_isEnabledRoadDiag](../../commands/buldozer_isEnabledRoadDiag.md): Returns if road diagnostics are enabled in buldozer.
- [buldozer_loadNewRoads](../../commands/buldozer_loadNewRoads.md): Generates new roads. Working only in buldozer.
- [buldozer_reloadOperMap](../../commands/buldozer_reloadOperMap.md): Reload oper map visible in costMap diag tool. Working only in buldozer.
- [calculatePlayerVisibilityByFriendly](../../commands/calculatePlayerVisibilityByFriendly.md): Sets if friendly units will calculate player's visibility or not. Default value is false.
- [callExtension](../../commands/callExtension.md): Calls custom .dll also known as Extension. The name of the extension is the name of the extension .dll without ".dll" part (or without "_x64.dll" part on 64-bit Arma).
- [cheatsEnabled](../../commands/cheatsEnabled.md): Checks whether cheats are enabled (whether the designers' version is running).
- [compileScript](../../commands/compileScript.md): This command is an alias for `compile(Final) (prefixHeader + preprocessFileLineNumbers path)`. See description of preprocessFileLineNumbers for more details.
- [completedFSM](../../commands/completedFSM.md): Checks whether the given FSM is completed. The FSM handle is the number returned by the execFSM command.
- [connectToServer](../../commands/connectToServer.md): Connects the client to the provided server.
- [copyFromClipboard](../../commands/copyFromClipboard.md): Return ANSI content of the (text) clipboard. If Unicode support is desired, see forceUnicode.
- [copyToClipboard](../../commands/copyToClipboard.md): Copies ANSI text string to the clipboard. If Unicode support is desired, see forceUnicode.
- [currentNamespace](../../commands/currentNamespace.md): Returns the current global namespace the script runs in.
- [distributionRegion](../../commands/distributionRegion.md): Returns the numerical index for the distribution region of this copy of Armed Assault. 1. USA 1. Rest of the world
- [enableCaustics](../../commands/enableCaustics.md): Enable/disable caustics drawing.
- [enableSatNormalOnDetail](../../commands/enableSatNormalOnDetail.md): Enables/Disables satellite normal map or detail maps.
- [endLoadingScreen](../../commands/endLoadingScreen.md): Finishes loading screen started by startLoadingScreen.
- [exportLandscapeXYZ](../../commands/exportLandscapeXYZ.md): Exports landscape as XYZ file.
- [finishMissionInit](../../commands/finishMissionInit.md): Finish world initialisation before mission is launched.
- [freeExtension](../../commands/freeExtension.md): Unloads given extension loaded previously with callExtension so that extension developer could rapidly tweak developed extension without restarting the game.
- [getCalculatePlayerVisibilityByFriendly](../../commands/getCalculatePlayerVisibilityByFriendly.md): Returns true if visibility of player by friendly units is calculated.
- [getFieldManualStartPage](../../commands/getFieldManualStartPage.md): Returns array of the starting topic and hint the given field manual should display.
- [getMissionOptions](../../commands/getMissionOptions.md): Returns various mission options
- [getMissionPath](../../commands/getMissionPath.md): Returns mission root plus the filename in a form of filepath to be used with commands requiring absolute path such as playSound3D, drawIcon3D, createSimpleObject, etc.
- [getObjectViewDistance](../../commands/getObjectViewDistance.md): Gets the values of rendering distances of objects and shadows.
- [getPiPViewDistance](../../commands/getPiPViewDistance.md): Get the set PiP (Picture-in-Picture) view distance (that can be set by setPiPViewDistance).
- [getResolution](../../commands/getResolution.md): Returns an array containing all information about current client screen resolution.
- [getShadowDistance](../../commands/getShadowDistance.md): Gets the shadows rendering distance.
- [getStatValue](../../commands/getStatValue.md): Returns value of the given stat.
- [getSteamFriendsServers](../../commands/getSteamFriendsServers.md): Returns servers information of Steam friends currently playing the game.
- [getTerrainGrid](../../commands/getTerrainGrid.md): A getter for setTerrainGrid, returns the current terrain grid.
- [getTextureInfo](../../commands/getTextureInfo.md): Return texture information - resolution in pixels (mipmap level 0) and average colour. Multiply the pixel values by pixelW and pixelH to get screen coordinates.
- [getVideoOptions](../../commands/getVideoOptions.md): Obtain the current system's video settings.
- [isAutotest](../../commands/isAutotest.md): Returns true if game was started with autotest parameter
- [isFilePatchingEnabled](../../commands/isFilePatchingEnabled.md): Returns true if file patching is enabled otherwise false
- [isGameFocused](../../commands/isGameFocused.md): Returns the state of game focus changed by pressing <kbd>ALT</kbd>+<kbd>TAB</kbd> or similar action.
- [isGamePaused](../../commands/isGamePaused.md): Returns the state of game simulation. Simulation can get paused by pressing <kbd>Alt</kbd>+<kbd>Tab</kbd> or a system dialog opening (e.g. <kbd>Esc</kbd> menu).
- [isPiPEnabled](../../commands/isPiPEnabled.md): Returns whether Picture-In-Picture video option (Render to Texture) is enabled or not.
- [isStreamFriendlyUIEnabled](../../commands/isStreamFriendlyUIEnabled.md): Returns the status of STREAM FRIENDLY UI setting in UI (OPTIONS >> GAME >> GENERAL >> STREAM FRIENDLY UI).
- [keyImage](../../commands/keyImage.md): Returns a structured text, containing an image or name (if no image is found) of the button, on the keyboard, mouse or joystick, with the given code.
- [keyName](../../commands/keyName.md): Returns the name of a button with extra quotation marks (on the keyboard, mouse or joystick) with the given code.
- [language](../../commands/language.md): Returns current game language.
- [libraryCredits](../../commands/libraryCredits.md): Returns the credits for the libraries used by the game.
- [libraryDisclaimers](../../commands/libraryDisclaimers.md): Returns the library disclaimers.
- [openSteamApp](../../commands/openSteamApp.md): Opens a Steam application, returns false if it was not possible to run the application.
- [openYoutubeVideo](../../commands/openYoutubeVideo.md): Opens Steam overlay with given YT video. Video URL is the end part of the YT URL, starting with watch?v=....
- [playMission](../../commands/playMission.md): The mission is launched (from the main menu).
- [playScriptedMission](../../commands/playScriptedMission.md): Load the given world, launch an empty mission, and execute the given expression. If provided, *config* can reference to the config entry, replacing Description.ext for this mission.
- [preprocessFile](../../commands/preprocessFile.md): Reads and processes the content of the specified file. Preprocessor is C-like, supports comments using `//` or `/*` and `- /` and PreProcessor Commands.
- [preprocessFileLineNumbers](../../commands/preprocessFileLineNumbers.md): Returns the preprocessed content of the given file. The preprocessor is C-like, it supports comments using /* */ and PreProcessor Commands.
- [productVersion](../../commands/productVersion.md): Returns the product's friendly name, identifier, version and build number.
- [profileName](../../commands/profileName.md): Returns currently chosen user profile name. For Steam profile name see profileNameSteam.
- [profileNameSteam](../../commands/profileNameSteam.md): Returns name of the current Steam profile. For currently chosen user profile name see profileName
- [progressLoadingScreen](../../commands/progressLoadingScreen.md): If loading screen is shown, sets progress bar to the given value (interval is from 0 to 1]).
- [requiredVersion](../../commands/requiredVersion.md): Check if version of application is available. If the current version is older than the required one, a warning message is shown and false is returned.
- [reversedMouseY](../../commands/reversedMouseY.md): Returns true if mouse vertical axe is inverted.
- [runInitScript](../../commands/runInitScript.md): Fades in mission screen and re-executes init.sqf and init.sqs scripts. In Eden Editor the code inside the "Init" mission attribute is executed.
- [saveJoysticks](../../commands/saveJoysticks.md): Saves joysticks key mappings into the joysticks.cfg file. Engine add these joysticks to the Joystick Scheme mapping dialog in options controls section.
- [screenshot](../../commands/screenshot.md): Takes a screenshot of the 3D scene and saves it to the provided filename. - Only the 3D scene is captured, no GUI/cursor - Sampling is taken in consideration: a 200% sampling value on a 1920x1080 resolution takes a…
- [setArmoryPoints](../../commands/setArmoryPoints.md): Stores passed number into [USERNAME].ArmaXProfile file, where it assigns it as a value to *armoryPoints* entry. If entry doesn't exist, it is created.
- [setDetailMapBlendPars](../../commands/setDetailMapBlendPars.md): Sets the detail texture map blend pars. Allows for smooth transition between detailed and undetailed terrain texture at distance.
- [setFSMVariable](../../commands/setFSMVariable.md): Set variable to given value in the variable space of given FSM.
- [setHorizonParallaxCoef](../../commands/setHorizonParallaxCoef.md): Sets coef used to shift horizon position based on camera height (use 0 to disable shifting).
- [setMissionOptions](../../commands/setMissionOptions.md): Sets various mission options. The options are automatically reset between missions and are saved/restored with the save system.
- [setObjectViewDistance](../../commands/setObjectViewDistance.md): Sets the rendering distance of objects and shadows.
- [setPiPViewDistance](../../commands/setPiPViewDistance.md): Set the PiP (Picture-in-Picture) view distance. This has no impact if PiP is disabled (see isPiPEnabled).
- [setShadowDistance](../../commands/setShadowDistance.md): Sets the shadows rendering distance.
- [setStatValue](../../commands/setStatValue.md): Sets a value to a given stat.
- [setSystemOfUnits](../../commands/setSystemOfUnits.md) **[broken]**: Set system of units. This will only impact gauges from advanced flight model.
- [setTerrainGrid](../../commands/setTerrainGrid.md): Sets the desired terrain resolution in meters.
- [setViewDistance](../../commands/setViewDistance.md): Set rendering distance. Setting view distance to <= 0 resets the value to the client's options (set in `Options → Video → General → Visibility → Overall`).
- [squadParams](../../commands/squadParams.md): Returns data about squad of given unit loaded from squad.xml as well as the unit itself.
- [startLoadingScreen](../../commands/startLoadingScreen.md): Shows loading screen with the given text, using the given resource. While loading screen is shown, simulation and scene drawing is disabled, user control is disabled, mouse cursor is hidden, scripts run at full speed…
- [steamGameRecordingEvent](../../commands/steamGameRecordingEvent.md): Triggers a Steam Timeline event within the Game Recording feature. Read Arma 3: Steam Game Recording for more information and a list of all available event icons.
- [supportInfo](../../commands/supportInfo.md): Creates a list of supported operators and type. Each field of array has the format: "x:name" Where x can be: - 't' - type - 'n' - nullar operator - 'u' - unary operator - 'b' - binary operator.
- [systemOfUnits](../../commands/systemOfUnits.md): Returns the currently selected system of units. - 0: Metric - 1: Mixed (ground vehicles use Metric / air vehicles use Imperial) - 2: Imperial
- [unlockAchievement](../../commands/unlockAchievement.md) **[broken]**: Unlocks the given achievement. The achievements are listed in CfgAchievements, however none of the currently listed achievements is used in Arma 3, hence the command always returns false.
- [useAIOperMapObstructionTest](../../commands/useAIOperMapObstructionTest.md): Toggle secondary obstruction test on road paths.
- [viewDistance](../../commands/viewDistance.md): Returns the rendering distance.
