wiki:Console commands

Console commands

Press ")" under Linux and "`" or "²" under windows to show/hide console while playing. (n is an integer, f a floating point number)

  1. fps_on/fps_off : show/hide the fps
  1. zshoot : make a shot of the zbuffer
  1. video shoot : activate/deactivate video recording
  1. reload shaders : reload the vertex & fragment programs used for water and details texture
  1. show mission info : prints current mission and mission flags of the selected unit
  1. view debug : draw on minimap the area that's computed by the renderer
  1. ia debug : show debug info about AI
  1. internal name : display the short name of the selected unit
  1. internal idx : display the index of the selected unit
  1. exit : leave the game
  1. wireframe : toggle wireframe mode
  1. priority n : set main thread priority to 0 (low - normal), 1 (medium) or 2 (high - might slow down the rest of the engine)
  1. water quality n : form 0 to 4 (0 - low, 1 - normal, 2 - high, 3 - higher, 4 - extreme (3 but with reflection on water))
  1. shadow quality n : quality of shadows (if you want them smooth)
  1. shadow ray n : smoothness of shadows
  1. shadow : toggle shadows
  1. details : toggle details texture
  1. particle : toggle particles
  1. waves : toggle waves on coasts
  1. show script : display scripting info about selected unit
  1. show model : display 3D model info about selected unit
  1. rotate light : make the sun light rotate
  1. shake : make the screen shake like when a big weapons detonates
  1. freecam : toggle free camera mode
  1. fps_limit : limit the frame rate (<= 0 means no limit)
  1. spawn UNIT player_id nb : spawns nb units of type UNIT for player_id, if UNIT isn't a correct unit type it spawns units of random type
  1. timefactor s : set game speed
  1. addhp h : add h hit points to selected units (can be negative)
  1. activate/deactivate : activate or deactivate selected units
  1. reset_script : reset selected units's script environment
  1. unitinfo : print info about selected units to the console
  1. kill : kill selected units
  1. script n : start script n on selected units
  1. pause : toggle pause/resume game
  1. give metal/energy/both player_id amount : give amount of resources to player_id
  1. metal : toggle infinite metal cheat
  1. energy : toggle infinite energy cheat