Every time the mission is started or loaded, KDGetInfo populates a number of mission quest variables with information about the game environment. These values are available at Sim time and can be tracked by TrigQVar. They are also updated when this script receives an UpdateVariables message and, for T2 (TMA), when the player returns from a menu. They are deleted as the script unloads, to prevent them from being stored with the mission in DromEd.

Quest variableDescriptionValues
info_directx_versionthe DirectX version in use6 = old, 9 = new
info_display_heightthe height of the canvas (screen/window)e.g. 1080 for fullscreen 1920×1080
info_display_widththe height of the canvas (screen/window)e.g. 1920 for fullscreen 1920×1080
info_has_eaxwhether EAX is enabled1 = yes, 0 = no
info_has_fogwhether fogging is enabled1 = yes, 0 = no
info_has_hw3dwhether hardware 3D rendering is enabled1 = yes, 0 = no
info_has_skywhether NewSky (“high detail”) is enabled1 = yes, 0 = no
info_has_weatherwhether weather is enabled1 = yes, 0 = no
info_missionthe number of the current mission *e.g. 20 for miss20
info_modethe current engine mode0 = regular game mode (e.g. thief2.exe)
1 = editor (e.g. dromed.exe) in edit mode
2 = editor in game mode
info_version_majorthe major component of the engine versione.g. 1 for version 1.21
info_version_minorthe minor component of the engine versione.g. 21 for version 1.21

The info_mission quest variable is available in T2 (TMA) only. It is not available in DromEd game mode, TG, or T1 (TDP), where the variable will not be set.

This script is part of the KDScript module. Copyright © 2012–2013 Kevin Daughtridge. See introduction for details.